terdoo-mzer's avatar

terdoo-mzer wrote a comment+100 XP

1mo ago

Let's go!!!!

terdoo-mzer's avatar

terdoo-mzer wrote a comment+100 XP

2mos ago

@Lee-M-321 use App\Models\User as ModelsUser;

In the above line where your 'User' class is imported, the 'ModelsUser' is added as an aliases. An aliases is used when you think there might be class name collisions.

If there is no other imported class with name "User", then, it is same t do without an aliases.

terdoo-mzer's avatar

terdoo-mzer wrote a comment+100 XP

2mos ago

@Tray2 Why do you think that is? I am curious!

terdoo-mzer's avatar

terdoo-mzer wrote a comment+100 XP

3mos ago

I am new to laravel, and will be taking this course. WIsh me luck please