todo lover is a laravel package that can manage your todos
composer require geeksesi/todo-lover
- php7.4
- laravel 7.x
- send mail : mailtrap
# migration
php artisan vendor:publish --tag=todo_lover-migrations
# config
php artisan vendor:publish --tag=todo_lover-config
default Authentication model (user)
is set by your app default config on :
config/auth.php
// ...
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
// ...
],
// ...
this config will overwrite OwnerModel in this package
if there is no providers config we will use our user model
to support your user model for tasks
use this trait :
use \Geeksesi\TodoLover\HasTaskTrait;
also if you have your own token authentication ( like passport, sanctum ) you should overwrite config file middelware
"middleware" => ["api", UserHandMadeTokenAuthorize::class],
# set your authentication middelware instead of : UserHandMadeTokenAuthorize::class
composer run test
MIT