use Illuminate\Support\Str;
Str::random(); // 隨機產生數字 + 英文大小寫 共16個字元組成的字串
Str::random('6'); // 產生指定長度(6)的字串
範例
:::info
Route::get('/test',function(){
Are you sure to leave this team?
Once you delete your team, all team notes will be deleted and cannot be recovered. Please ensure you've exported or transfered these notes.
Enter team name before deleting it:
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up