Data Model & Migration
Go to http://localhost/phpmyadmin/ and create a database name eleave. Open the .env file and replace your database source configuration and it login details as the example below.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=eleave
DB_USERNAME=root
DB_PASSWORD=
To get started, let's create an Eloquent model with migration by using make:model modelName --migration or -m. Models live in the app->Models directory. You can use make:model Artisan command to generate a new model. We are going to generate model with the database migration. The database migration class live in database->migrations
php artisan make:model ModelName -m
When are ready to migrate (to create the tables in database), you can run migrate artisan command.
php artisan migrate