Want to access all of our courses? (30 h 09 min)
You also get:
Already a member? Login here
Hi Pavilas, thanks for great content. I wonder why is it required to make a change (below)? - I am using Laravel 10 at the moment, if that makes any difference. Thanks in advance.
User::where('email', $request->email)->first()
To
\App\Models\User::where('email', $request->email)->first();
It's just the difference if you load use App\Models\User; on top or not. If not, then you need to specify the full name like in your second example.
use App\Models\User;
Tell us what you like or what we can improve
Feel free to share anything you like or dislike about this page or the platform in general.
Your feedback has been received. We truly appreciate you taking the time to help us improve.
Hi Pavilas, thanks for great content. I wonder why is it required to make a change (below)? - I am using Laravel 10 at the moment, if that makes any difference. Thanks in advance.
To
It's just the difference if you load
use App\Models\User;on top or not. If not, then you need to specify the full name like in your second example.