Laravel Totem – Schedule Manager for Laravel
Hello artisans, today I’ll talk about Laravel totem. Laravel totem is a package which allows us to easily manage i.e. create, edit or delete your scheduled commands. So, let’s see how we can use this in our application.
Note: Tested on Laravel 8.65.
Table of Contents
Create Application and Setup Database
At first we will create a fresh application, So, fire the below command in your terminal
laravel new totem
Next we need to create a database and configure the database setting in our .env file
Install and configure Laravel Totem
Now, we need to move ahead to our project and directory and need to fire the below command
composer require studio/laravel-totem
Finally we need to run our migrations and publish the assets. So, lets do that one by following command
php artisan migrate
php artisan totem:assets
And that’s it. We have successfully install our Laravel totem. Now, we can visit this http://127.0.0.1:8000/totem/tasks url.
Features of Laravel totem
After visiting http://127.0.0.1:8000/totem/tasks, we can see the following image
Here we can create a New Task or we can import/export an tasks. Here, we will create a new Task an see how it works.
Click in to the New Task . You will see a below screen.
Now add any task with a name and select migrate:fresh command and set the frequency to Every Five minutes and save it.
Now in every five minutes your database is migrated.
That’s all for today. Thanks for reading.