- Introduction
- Environment Configuration
- Install
- Make .env configuration
- Generate Application Key
- Update Database details
- Run Database Migration
- Run the Refresh command
- Run autoload
- Testing Data Run Seeder
- Run Application
Online Course Registration System(ocrs) the basic purpose of this project is to automate the process of course registration.
It is often helpful to have different configuration values based on the environment where the application is running. For example, you may wish to use a different cache driver locally than you do on your production server.
The install
command reads the composer.json
file from the current directory, resolves the dependencies, and installs them into vendor
.
composer install
You can always generate .env file manually by running:
cp .env.example .env
You can always generate application key by running
php artisan key:generate
You can insert you local database information by editing .env
file.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=DATABASE NAME
DB_USERNAME=DATABASE USER NAME
DB_PASSWORD=DATABASE PASSWORD
You always run the database migration command when ever you newly install the application by using:
php artisan migrate:install
Prompt will display you Migration successfully
.
You will run the refresh
command for generating migrated tables by using:
php artisan migrate:refresh
Not mandatory we have set db:seed
run with migrate:refresh
.
Now your application is ready to launch :)
You must run the autoload if found error class not found
.
composer dump-autoload
You can insert dummy data in database using this command:
php artisan db:seed
To run application, use the serve
command:
php artisan serve