Download the PHP package mindtwo/appointable without Composer
On this page you can find all versions of the php package mindtwo/appointable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mindtwo/appointable
More information about mindtwo/appointable
Files in mindtwo/appointable
Package appointable
Short Description This package helps you to manage appointments within yout Laravel application.
License MIT
Homepage https://github.com/mindtwo/appointable
Informations about the package appointable
Appointable by mindtwo
Introduction
Appointable is a Laravel package by mindtwo that provides an appointment management system with configurable routes and controllers. It allows developers to manage appointments, handle invitations, and provide easy-to-use RESTful endpoints for various appointment-related actions. This package comes with built-in routes, a service provider, and configuration options for quick integration.
Features
- Create and auto-manage appointments for Eloquent models
- Registerable routes for managing appointments.
- RESTful controllers for creating, updating, canceling, and managing invitations.
- Middleware support for secure appointment routes.
Installation
-
Install the package via Composer:
-
(Optional) Publish the configuration and migration files:
- Run the migrations:
Usage
Register Routes
To register the default appointment management routes, simply call the Appointable::routes() method in your web.php routes file.
By default, the routes will be registered under the /appointments prefix. You can customize the prefix and middleware by passing options to the routes() method:
This will register the routes under /my-appointments and apply the auth middleware.
Available Routes
The following routes are registered when using Appointable::routes():
- GET
/appointments– List all appointments (Index). - POST
/appointments– Create a new appointment. - PUT|PATCH
/appointments/{uuidOrUid}– Update an appointment. - DELETE
/appointments/{uuidOrUid}– Cancel an appointment. - POST
/appointments/{uuidOrUid}/confirm– Confirm an appointment invitation. - POST
/appointments/{uuidOrUid}/decline– Decline an appointment invitation.
Middleware
By default, no middleware is applied to the routes. You can specify custom middleware in the routes() method:
Configurations
You can customize the behavior of the package through its configuration file. After publishing the configuration, modify the config/appointable.php file as needed.
Migrations
The package provides a migration file to create the appointments table. You can publish the migration with:
After publishing, run the migration:
License
This package is open-sourced software licensed under the MIT license.
All versions of appointable with dependencies
illuminate/contracts Version ^11.0||^12.0
mindtwo/laravel-auto-create-uuid Version ^2.6
spatie/laravel-data Version ^4.0