Download the PHP package ict21/reservation without Composer
On this page you can find all versions of the php package ict21/reservation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ict21/reservation
More information about ict21/reservation
Files in ict21/reservation
Package reservation
Short Description For integrated reservation module
License MIT
Homepage https://github.com/silenus092/ReservationModule/
Informations about the package reservation
-
clone project composer require ict21/reservation
-
create database php artisan migrate --package="vendor/ict21"
- To use
-
Add the following item to config/app.php Providers array: ICT\reservation\ICTReservationServiceProvider::class,
and aliases
'Reservation'=> \ICT\reservation\ICTReservationController::class
- usage $reservation = new Reservation();
$reservation_array = [ 'email' => "[email protected]", 'roomtype_name' => "TestType", 'name' => "salmon", 'last_name' => 'sam', 'phone' => '78945612', 'check_in' => '2017-12-12', 'check_out' => '2017-12-18', 'quota_room' => '5', 'adult' => '2', 'child' => '2, 'fee' => '50000', 'nights' => '7',
];
$results = $reservation->reserveStore($reservation_array);