Skip to content

An app of tasks lists for each individual user. Built on Laravel 8, using 8 authentication and middleware.

License

Notifications You must be signed in to change notification settings

MostafaNorzade/laravel-tasks

 
 

Repository files navigation

Laravel daily Tasks

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.

Quick Project Setup

  1. Run sudo git clone https://github.com/imanghafoori1/laravel-tasks.git laravel-tasks
  2. From the projects root run cp .env.example .env
  3. Configure your .env
  4. Run sudo composer update from the projects root folder
  5. From the projects root folder run php artisan task:install to migrate and seed

Laravel-Tasks URL's (routes)

  • /home
  • /tasks
  • /tasks/create
  • /tasks/{id}/edit

Long Story Short:

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


Laravel Temp Tag:

https://github.com/imanghafoori1/laravel-temp-tag

About

An app of tasks lists for each individual user. Built on Laravel 8, using 8 authentication and middleware.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 75.2%
  • Blade 24.4%
  • Shell 0.4%