Create a custom artisan command in Laravel and execute it from the command line to run a controller method. use Laravel create command example.