Laravel Hotel is an open-source web application built with laravel 8.0, enchanced with laravel websockets features to have realtime notification experience.
Its now compatible with laravel 9
- Create DB Name: hotel_app or via terminal
mysql -u root -p
enter your db credential
create database hotel_app;
exit;
cp .env.example .env // after that start filling credential at .env
composer install
npm install
npm run dev
php artisan migrate:fresh --seed
- After migration run =>ALTER TABLE hotels ADD CONSTRAINT user_id FOREIGN KEY (user_id) REFERENCES users(id);
php artisan serv => Terminal 1
php artisan websockets:serv => Terminal 2 //run the websocket server for realtime notification
npm run dev
// run this on your terminal to generate production build
npm run build
As a Super:
- Email: [email protected]
- Password: super
As an Admin:
- Email: [email protected]
- Password: admin