Lee-M-321's avatar

Lee-M-321 wrote a comment+100 XP

2mos ago

Just to note that in my snippet for creating the user is looked like this:-

$user = ModelsUser::create([
	'name' => $request->name,
    'email' => $request->email,
    'password' => Hash::make($request->password)
]);

See the 'ModelsUser' object call instead of the 'Users' object in the video. Not sure if its my IDE (VS Code) causing this but it does work as it added the following to the top of the script:-

use App\Models\User as ModelsUser;