How about writing your script as a Laravel Artisan command ? you can then execute it by running something like
php artisan my:command
This way you have the best connectivity with the entire app.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community