Laravel 5 Clear Views Cache
There is now a php artisan view:clear command for this task since Laravel 5.1
There is now a php artisan view:clear command for this task since Laravel 5.1
You need to put SongsTableSeeder into file SongsTableSeeder.php in the same directory where you have your DatabaseSeeder.php file. And you need to run in your console: composer dump-autoload to generate new class map and then run: php artisan db:seed I’ve just tested it. It is working without a problem in Laravel 5
In my situation, I didn’t have the full vendor dependencies in place (composer file was messed up during original install) – so running any artisan commands caused a failure. I was able to use the –no-scripts flag to prevent artisan from executing before it was included. Once my dependencies were in place, everything worked as … Read more
Perform a composer update, then composer dump-autoload. If the above doesn’t solve the problem, change the classmap in your composer.json file such that it contains the project-relative path to your php files: “autoload-dev”: { “classmap”: [ “tests/TestCase.php”, “database/seeds/UserTableSeeder.php” //include the file with its path here ] }, /** … */ and soon after, perform a … Read more
If you are using localhost as your DATABASE_HOST in the .env file, change it to 127.0.0.1, then run php artisan config:clear and now try php artisan migrate:install again.
You need to first create Laravel project and if you already have one you need to go to this project dir using cd command in terminal for example cd myproject. Now you will be able to run any artisan commands, for example running php artisan will display you list of available commands.
From Encryption – Laravel – The PHP Framework For Web Artisans: “Before using Laravel’s encrypter, you must set a key option in your config/app.php configuration file. You should use the php artisan key:generate command to generate this key” I found that using this complex internet query in google.com: “laravel add encrption key” (Yes, it worked … Read more
Running nohup php artisan queue:work –daemon & Will prevent the command exiting when you log out. The trailing ampersand (&) causes process start in the background, so you can continue to use the shell and do not have to wait until the script is finished. See nohup nohup – run a command immune to hangups, … Read more
I just ran into this and found that changing this in the .env file from 127.0.0.1 to localhost fixed it. DB_HOST=localhost