michal78 / laravel-tasks
This package is abandoned and no longer maintained.
No replacement package was suggested.
Simple task management for Laravel
1.0.0.3
2025-06-13 11:40 UTC
Requires
- php: ^7.4|^8.0|^8.1|^8.2
- illuminate/cache: ^8.0|^9.0|^10.0|^11.0|^12.0
- illuminate/database: ^8.0|^9.0|^10.0|^11.0|^12.0
- illuminate/support: ^8.0|^9.0|^10.0|^11.0|^12.0
Requires (Dev)
- orchestra/testbench: ^6.0 || ^10.0
- phpunit/phpunit: ^9.0 || ^10.0
- dev-main
- 1.0.0.3
- 1.0.0.2
- 1.0.0.0
- dev-codex/add-task-timing-and-scheduling-feature
- dev-xzw7yl-codex/update-import-statement-and-fix-code-block
- dev-codex/make-tasks-owner-polymorphic
- dev-codex/remove-danish-locale-from-taskfactory
- dev-codex/find-and-fix-important-bug
- dev-codex/update-import-statement-and-fix-code-block
- dev-codex/fix-typo-in-comment
- dev-codex/add-tests-for-hastasks-model
- dev-codex/enable-support-for-laravel-12
- dev-Test_workflow
- dev-2-initial-fixes-after-irl-testing
- dev-michal78-patch-1
- dev-Api_and_routes
This package is auto-updated.
Last update: 2025-06-25 13:55:57 UTC
README
This package provides simple task management for Laravel applications. It is compatible with Laravel versions 8 through 12.
Installation
You can install the package via composer:
composer require michal78/laravel-tasks
Usage
// Add the HasTasks trait to your model use Michal78\Tasks\Traits\HasTasks; class User extends Model { use HasTasks; } // Create a task $user->addTask( [ 'name' => 'My task', 'description' => 'My task description', 'priority' => 2, 'due_date' => now()->addDays(7), ] ); // Get all tasks $user->tasks; // Get all tasks that are not completed $user->tasks()->notCompleted()->get(); // Get all tasks that are completed $user->tasks()->completed()->get(); // Get all tasks that are completed and have a due date in the future $user->tasks()->completed()->future()->get();
Testing (Not implemented yet)
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email michal.skogemann@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.