Laravel

[solved] Laravel 7 Swift_TransportException Cannot send message without a sender address

If you are getting “Swift_TransportException Cannot send message without a sender address” while trying to send email notifications using the mailtrap email testing tool. Then please make sure you added right settings of the mailtrap login details inside the .env file Add from email address and encryption. Then you have to clear config using following commands…

Laravel

Laravel php artisan make:auth command is not defined

If you are trying to run the command php artisan make:auth on laravel verson 6+ and you are getting command is not defined error. Then this is happening because this command is removed in Laravel version 6. Because laravel development team extracted Laravel view(UI) generation from laravel core application. So this change was done to Laravel(Views)…

Laravel

[SOLVED] zsh: command not found laravel

If you receive this error then there is issue with the path.You have to edit the .zshrc file and add this line To edit the file run following command from terminal then enter this line inside that file To save press Control + X buttons. Then press Y to save and hit enter. If you receive…

Laravel

[SOLVED] Illuminate\Database\QueryException SQLSTATE[HY000] [2002] Connection refused (SQL: select count(*) as aggregate from `products`) LARAVEL 6 MAMP

If you are using mysql from mamp for your laravel application and getting following error while displaying the data inside your application Illuminate\Database\QueryException SQLSTATE[HY000] [2002] Connection refused (SQL: select count(*) as aggregate from `products`) Then you can solve this issue by just adding following line inside your .env file below the connection settings DB_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock It will…