Replace deprecated array and string helpers

Laravel recommends using the `Str` and `Arr` class methods directly instead of the respective helper functions. These helper functions are deprecated in Laravel 5.8 and removed in Laravel 6.
This commit is contained in:
Shift
2023-01-06 11:53:35 +00:00
parent 03623d493d
commit b02541ac64
28 changed files with 91 additions and 70 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Http\Controllers\Auth;
// controllers
use Illuminate\Support\Str;
use App\Http\Controllers\Admin\helpdesk\SocialMedia\SocialMediaController;
use App\Http\Controllers\Common\PhpMailController;
// requests
@@ -179,7 +180,7 @@ class AuthController extends Controller
$user->user_name = $request->input('email');
}
$user->role = 'user';
$code = str_random(60);
$code = Str::random(60);
$user->remember_token = $code;
$user->save();
$message12 = '';