-
-
Notifications
You must be signed in to change notification settings - Fork 49
php artisan settings:migrate command not working #21
Comments
Did you dump your autoload? Laraguard doesn't uses The stack trace should give you all the details. |
Yes, I regenerated autoload file
Sorry cannot show stack trace because removed your package from project, but I discovered sources and take the your models, chic architecture. |
I'm having the same problem.
|
i also have the same issue, but only on Linux, on windows, i don't have this issue. still no fix to this issue? |
This is what i get in the log file
|
Same issue here @DarkGhostHunter |
Hands full and overtime guys, you will have to sit this one out. |
@DarkGhostHunter #26 Please merge, this should fix the issue. |
Same issue here, with traits |
I have the same problem with my User model: PHP Fatal error: Cannot declare trait App\Models\Traits\Encryptable, because the name is already in use in /var/www/html/app/Models/Traits/Encryptable.php on line 9
Symfony\Component\ErrorHandler\Error\FatalError
Cannot declare trait App\Models\Traits\Encryptable, because the name is already in use
at app/Models/Traits/Encryptable.php:9
5▕ use Illuminate\Contracts\Encryption\DecryptException;
6▕ use Illuminate\Contracts\Encryption\EncryptException;
7▕ use Illuminate\Support\Facades\Crypt;
8▕
➜ 9▕ trait Encryptable
10▕ { My user model looks like that: class User extends Authenticatable implements MustVerifyEmail
{
use HasApiTokens;
use HasFactory;
use HasProfilePhoto;
use Notifiable;
use TwoFactorAuthenticatable;
use HasRoles;
use HasConfig; So I dont even use the Encryptable trait on the user model itself and it's really only declared once in my application. I called artisan optimize and composer dump-autoload without success |
Is there maybe an alternative to use the settings without "migration" command in the meantime? |
Are you updated with latest master? this commit must fix that |
I usually don't install master or dev versions in production code. The latest available version 1.3.5 is 6 months old. Therefore I guess I need to wait for the next version ;) |
php artisan settings:migrate
command not workingCannot declare class
App\Models\AnyModel
, because the name is already in useI tried remove this model, and this issue occurs again on next model in alphabetical order
looks like it swears at any model
The text was updated successfully, but these errors were encountered: