Laravel 8 with user authentication, password recovery, and individual user tasks lists.
This is a sample usage of my laravel-temp-tag
package. When you mark a daily-task as done, it will automatically return back to in-complete state at the end of the day.
Super easy setup, can be done in 5 minutes or less.
- Run
sudo git clone https://github.com/imanghafoori1/laravel-tasks.git laravel-tasks
- From the projects root run
cp .env.example .env
- Configure your
.env
- Run
sudo composer update
from the projects root folder - From the projects root folder run
php artisan task:install
to migrate and seed
/home
/tasks
/tasks/create
/tasks/{id}/edit
We Tag the tasks as 'complete' until the end of the day:
tempTags($task)->tagIt('complete', Carbon::tomorrow()->startOfDay());
We remove the tag from the task when the user marks it as in-complete:
tempTags($task)->unTag('complete');
We fetch the 'complete' and 'incomplete' tasks like this:
Task::hasActiveTempTags('complete')->get(); // tasks which has tag
Task::hasNotActiveTempTags('complete')->get(); // tasks no tag
And that is all ! Super simple