php artisan migrate clear code example
Example 1: laravel artisan clear cache
//Updated Dec 2020
//laravel artisan clear cache
php artisan view:clear
php artisan cache:clear
php artisan route:clear
php artisan config:clear
Example 2: config clear without artisan
Route::get('/clear-config', function() {
$exitCode = Artisan::call('config:clear');
// return what you want
});
Example 3: delete a migration laravel
// delete a migration safely from laravel
delete migration from database/migrations/ directory
and also delete entry from migrations table