PHPackages                             shayanys/lara-reserve - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. shayanys/lara-reserve

ActiveLaravel-package

shayanys/lara-reserve
=====================

a package to do reservation

2.0.0(3y ago)893.0k7[2 issues](https://github.com/shayan-yousefi/lara-reserve/issues)[1 PRs](https://github.com/shayan-yousefi/lara-reserve/pulls)MITPHPPHP ^8.1

Since Apr 21Pushed 2y ago4 watchersCompare

[ Source](https://github.com/shayan-yousefi/lara-reserve)[ Packagist](https://packagist.org/packages/shayanys/lara-reserve)[ RSS](/packages/shayanys-lara-reserve/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (8)Used By (0)

Lara Reserve
============

[](#lara-reserve)

[![Lara Reserve license](https://camo.githubusercontent.com/5dc43d181e18f0a196a2bcdbc057dcfc84dc9f6180a804aedf0c1e9e2383304a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73686179616e3130302f6c6172612d72657365727665)](https://camo.githubusercontent.com/5dc43d181e18f0a196a2bcdbc057dcfc84dc9f6180a804aedf0c1e9e2383304a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73686179616e3130302f6c6172612d72657365727665)[![Lara Reserve size](https://camo.githubusercontent.com/a378bf97a8f0dcff1ba0d55159d9bd029d2bc1a7025b151fb7637debb23ab4f8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f73686179616e3130302f6c6172612d72657365727665)](https://camo.githubusercontent.com/a378bf97a8f0dcff1ba0d55159d9bd029d2bc1a7025b151fb7637debb23ab4f8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f73686179616e3130302f6c6172612d72657365727665)[![Lara Reserve version](https://camo.githubusercontent.com/61639713d9ad430260bf6c643f2e5eb7279491de23d54c2b32a34709a75d9bfc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73686179616e79732f6c6172612d72657365727665)](https://packagist.org/packages/shayanys/lara-reserve)

Lara Reserve Is a Laravel Package To Adds a Reservation feature to the laravel models.

Installation
============

[](#installation)

To Install Lara Reserve Run Following Command:

```
composer require shayanys/lara-reserve
```

and then run Migrations By:

```
php artisan migrate
```

Usage
=====

[](#usage)

Initialize Models to Use Lara Reserve
-------------------------------------

[](#initialize-models-to-use-lara-reserve)

To Add Lara Reserve Feature To Models, Your Models Should Implement `ReservableInterface` And use `Reservable` Trait. And the Model Is Ready For Reserve By the Customer. And If Your Model Is a Customer, e.g. User model (Which Can Reserve Reservables) Should Implement `CustomerInterface` And use `Customer` Trait.

### Example:

[](#example)

#### Reservable Model:

[](#reservable-model)

```
