Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Lee-M-321's avatar

Lee-M-321 wrote a comment+100 XP

2mos ago

Laravel From Scratch (2026 Edition): Ep 14, Authentication Explained

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;