terdoo-mzer wrote a comment+100 XP
1mo ago
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 wrote a comment+100 XP
2mos ago
@Tray2 Why do you think that is? I am curious!
terdoo-mzer wrote a comment+100 XP
3mos ago