Installing & Running the System

It is super simple to run LaraBooking. First, you need to check if all the requirements are installed on your system. After it, follow these steps:

1. Create a new Database

Create a new MySQL Database. We recommend that you use utf8 charset in your database. You can create it using the following command, or use your preferred database manager:

CREATE DATABASE larabooking CHARACTER SET utf8 COLLATE utf8_general_ci;

2. Extract the Code

Extract the code in a directory of your preference. Then, navigate to the project folder using the terminal and install all the composer packages with the command below:

composer install

The composer packages installation can take a few minutes. After the installation, inside the project folder, find a file named:

.env.example

Copy all the .env.example file content to a new file named:

.env

Inside this new .env file, change the DATABASE section to use the database you have created in the first step:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=larabooking
DB_USERNAME=your_username
DB_PASSWORD=your_password

3. Create the Symbolic Link for files storage

By default, the LaraBooking uses the King of Code's Laravel Uploadable package to make file uploads. This package requires using the Laravel Filesystem with the Public Disk configuration to save the uploaded files.

To configure the Public Disk, access your LaraBooking project folder from the terminal and run this command:

php artisan storage:link

After it, your LaraBooking installation can make file and image uploads.

4. Creating the database tables and seeding the data

Now, inside your LaraBooking project folder you can run the commands to create the database tables and seed the test data. If you want to seed the system with all the test data, run the command below:

php artisan migrate --seed

Or, if you want a clean database, use this command:

php artisan migrate

And then, run the following command to create an Admin user (email: admin@admin.com, password: admin) on your system:

php artisan db:seed --class=AdminUserTableSeeder

5. Running the System

Inside your LaraBooking project folder, execute this command to generete de APP_KEY:

php artisan key:generate

And this command to run a server in the http://localhost on the port 8000:

php artisan serve

And then, access http://localhost:8000 to see LaraBooking running.

6. Default Logins

When seed the system data, this will create some default logins:

  • Admin - email: admin@admin.com, password: admin
  • Provider 1 - email: john@john.com, password: john
  • Provider 2 - email: joane@joane.com, password: joane
  • Client - email: client@client.com, password: client


If you want to test the Client Appointment Booking, log in with the client user mentioned above.