geeksesi / todo-lover
todo lover is a laravel package that can manage your todos
dev-master
2022-05-03 15:58 UTC
Requires
- doctrine/dbal: ^2.12
Requires (Dev)
- laravel/legacy-factories: ^1.0.4
- orchestra/testbench: ^5.8
This package is auto-updated.
Last update: 2024-04-30 00:39:38 UTC
README
todo lover is a laravel package that can manage your todos
Installation
composer require geeksesi/todo-lover
compatibilities
- php7.4
- laravel 7.x
enviroments :
- send mail : mailtrap
publish :
# migration
php artisan vendor:publish --tag=todo_lover-migrations
# config
php artisan vendor:publish --tag=todo_lover-config
Configs
Authentication
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
Test
composer run test
License
MIT