Open fasi1208 opened 3 years ago
I am new here and I was helping a user with the same problem on SO.
The idea is that this package still uses the old Laravel model's pattern (have models
in app
instead of app\models
) but this changed on Laravel 8 by default. So for this package to work (because it is doing use App\User;
where it needs it) you have to have that class autoloaded/available, hence if you have your model on App\Models\User
, you can "alias" it by creating a class that extends the original but is also available as App\User
.
That is why it is empty, it is just an alias... This is one file that uses this:
So:
App\Models\User
for anything else.
Under installation steps. In point 3
Step 3. Check if App\User exists
If I navigate to this link it shows
`<?php
namespace App;
class User extends Models\User { //leave this empty }`
I have few questions