Skip to content

Sample Laravel Package - Adds To-Do list functionalities to your code-base

License

Notifications You must be signed in to change notification settings

MikeElahi/sample-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel To-Do

https://github.com/WiGeeky/todo/actions/ GitHub Workflow Status

This Laravel 7.x package is a sample laravel package that adds the to-do functionality to your existing laravel project.

Installation

You will need to install this package from packagist:

composer require wigeeky/todo

This package is made to work out of the box, however, if you need to customize this package's prefix and middlewares, you can publish the project configuration file:

php artisan vendor:publish --provider="WiGeeky\Todo\TodoServiceProvider" --tag="config"

Entities

This package uses 3 entities to provide the to-do functionality:

  • User (Provided by your main Laravel project)
  • Task (Tasks that belong to a user)
  • Label (System-wide labels that belong to tasks)

Routes

By default, this package provides a RESTful API separated for each resource:

Task

GET   /api/tasks                # List of tasks for the logged in user
GET   /api/tasks/{task}         # Get details about a specific task
POST  /api/tasks                # Create a new task for the logged in user
PUT   /api/tasks/{task}         # Update a task's name and description
PATCH /api/tasks/{task}         # Update a task's status
POST  /api/tasks/{task}/labels  # Add a label to the current task

Label

GET  /api/labels # List of all system-wide labels that user has used so far
POST /api/labels # Add a new label to the system

About

Sample Laravel Package - Adds To-Do list functionalities to your code-base

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages