Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

execute artisan command from route

Route::get('clear_cache', function () {

    Artisan::call('cache:clear');

    dd("Cache is cleared");

});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #execute #artisan #command #route
ADD COMMENT
Topic
Name
1+9 =