Laravel Fatal Error Class Not Found when migrating

后端 未结 11 2145
后悔当初
后悔当初 2021-02-02 11:39
  1. I\'ve run artisan migrate:reset.

  2. I\'ve deleted some of my migration files because I didn\'t need these tables anymore.

  3. I

11条回答
  •  执念已碎
    2021-02-02 12:17

    I know this is a bit past but there is a better way actually. Run the following in terminal and feel free yourself to remove any of them:

    ~$ php artisan clear-compiled;php artisan cache:clear;php artisan config:clear;php artisan debugbar:clear;php artisan view:clear;php artisan optimize
    

    To do it a regular task create an executable file named artisan-clear:

    #!/bin/bash
    
    php artisan clear-compiled
    php artisan cache:clear
    php artisan config:clear
    php artisan debugbar:clear
    php artisan view:clear
    php artisan optimize
    

提交回复
热议问题