Run artisan commands on shared hosting server (Laravel)

+ TODO delete logs shared hosting

1. Open the web.php file which is in the “route” folder of your project and paste the below code.
//Clear configurations:
Route::get(‘/config-clear’, function() {
$status = Artisan::call(‘config:clear’);
return ‘<h1>Configurations cleared</h1>’;
});

//Clear cache:
Route::get(‘/cache-clear’, function() {
$status = Artisan::call(‘cache:clear’);
return ‘<h1>Cache cleared</h1>’;
});

//Clear configuration cache:
Route::get(‘/config-cache’, function() {
$status = Artisan::call(‘config:Cache’);
return ‘<h1>Configurations cache cleared</h1>’;

 

https://blog.webnersolutions.com/run-artisan-commands-on-shared-hosting-server-laravel/

Laravel Mail with Gmail and Mailtrap

youremail@gmail.com:

UNLOCK lINKS

https://myaccount.google.com/security

https://myaccount.google.com/lesssecureapps

https://accounts.google.com/b/0/DisplayUnlockCaptcha

ERROR solution: https://stackoverflow.com/questions/33939393/failed-to-authenticate-on-smtp-server-error-using-gmail

FOR LOCAL DEVELOPMENT: MAiltrap:

https://medium.com/@christianjombo/setting-up-mailtrap-for-laravel-development-313133bb800c

https://mailtrap.io/inboxes/614146/messages