Open Mohammed2050 opened 8 years ago
When i try to make php artisan migrate PHP Fatal error: Class 'AddRoleColumnToUserTable' not found in /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php on line 336 PHP Stack trace: PHP 1. {main}() /opt/lampp/htdocs/rentapp/artisan:0 PHP 2. Illuminate\Foundation\Console\Kernel->handle() /opt/lampp/htdocs/rentapp/artisan:36 PHP 3. Symfony\Component\Console\Application->run() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:107 PHP 4. Symfony\Component\Console\Application->doRun() /opt/lampp/htdocs/rentapp/vendor/symfony/console/Application.php:117 PHP 5. Symfony\Component\Console\Application->doRunCommand() /opt/lampp/htdocs/rentapp/vendor/symfony/console/Application.php:186 PHP 6. Illuminate\Console\Command->run() /opt/lampp/htdocs/rentapp/vendor/symfony/console/Application.php:791 PHP 7. Symfony\Component\Console\Command\Command->run() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Console/Command.php:155 PHP 8. Illuminate\Console\Command->execute() /opt/lampp/htdocs/rentapp/vendor/symfony/console/Command/Command.php:256 PHP 9. Illuminate\Container\Container->call() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Console/Command.php:169 PHP 10. call_user_func_array() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Container/Container.php:507 PHP 11. Illuminate\Database\Console\Migrations\MigrateCommand->fire() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Container/Container.php:507 PHP 12. Illuminate\Database\Migrations\Migrator->run() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php:77 PHP 13. Illuminate\Database\Migrations\Migrator->runMigrationList() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:86 PHP 14. Illuminate\Database\Migrations\Migrator->runUp() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:117 PHP 15. Illuminate\Database\Migrations\Migrator->resolve() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:141
[Symfony\Component\Debug\Exception\FatalErrorException] Class 'AddRoleColumnToUserTable' not found
Did you ran composer dump-autoload?
Yes but same probem
try this one.
php artisan clear-compiled php artisan optimize
When i try to make php artisan migrate PHP Fatal error: Class 'AddRoleColumnToUserTable' not found in /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php on line 336 PHP Stack trace: PHP 1. {main}() /opt/lampp/htdocs/rentapp/artisan:0 PHP 2. Illuminate\Foundation\Console\Kernel->handle() /opt/lampp/htdocs/rentapp/artisan:36 PHP 3. Symfony\Component\Console\Application->run() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:107 PHP 4. Symfony\Component\Console\Application->doRun() /opt/lampp/htdocs/rentapp/vendor/symfony/console/Application.php:117 PHP 5. Symfony\Component\Console\Application->doRunCommand() /opt/lampp/htdocs/rentapp/vendor/symfony/console/Application.php:186 PHP 6. Illuminate\Console\Command->run() /opt/lampp/htdocs/rentapp/vendor/symfony/console/Application.php:791 PHP 7. Symfony\Component\Console\Command\Command->run() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Console/Command.php:155 PHP 8. Illuminate\Console\Command->execute() /opt/lampp/htdocs/rentapp/vendor/symfony/console/Command/Command.php:256 PHP 9. Illuminate\Container\Container->call() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Console/Command.php:169 PHP 10. call_user_func_array() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Container/Container.php:507 PHP 11. Illuminate\Database\Console\Migrations\MigrateCommand->fire() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Container/Container.php:507 PHP 12. Illuminate\Database\Migrations\Migrator->run() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php:77 PHP 13. Illuminate\Database\Migrations\Migrator->runMigrationList() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:86 PHP 14. Illuminate\Database\Migrations\Migrator->runUp() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:117 PHP 15. Illuminate\Database\Migrations\Migrator->resolve() /opt/lampp/htdocs/rentapp/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:141
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'AddRoleColumnToUserTable' not found