PHP cmd to create DB without running install in Laravel
Pre-Requisites:
php instakked globally (i.e) Environment varibles has the path of php in xampp
Laravel source code with database folder containg seed and migration php files
Artisian file at root of source code
.env file at root of source code with DB user name and password
Commands:
1. Go to command prompt and navigate to the root of the source code.
2. Command to create tables
php artisan migrate
3. Command to insert row in tables
php artisan db:seed
Comments
Post a Comment