L
L
lordning9992021-03-15 09:46:59
Laravel
lordning999, 2021-03-15 09:46:59

Laravel artisan tinker sitemap update, cron launch how?

Hello!

Guys tell me, I use the sitemap generation from this dude https://github.com/Laravelium/laravel-sitemap , tell me now I have to run the update every time like this:

php artisan tinker
$controller = app()->make('App\Http\Controllers\SitemapUpdate');
app()->call([$controller, 'index'], []);

Tell me how to automate this business, I thought on the crown, but how to run the tinker on the crown xs, so as not to constantly climb into the console and perform such manipulations, I did not find anything sensible on the Internet, I would be very grateful for help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2021-03-15
@lordning999

https://laravel.com/docs/8.x/artisan#writing-commands
+
https://laravel.com/docs/8.x/scheduling

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question