Create a database locally named as your project name or wish utf8_general_ci
forexample we are creating laravel_cms database name and its collation into utf8_unicode_ci
Download composer https://getcomposer.org/download/
Pull Laravel/php project from git provider.
or place of your project file into your directory.
.env.example file to
.env inside your project root and fill the database information. (windows wont let you do it, so you have to open your console cd your project root directory and run
mv .env.example .env )
Open the console and cd your project root directory
>mv .env.example .env
$cp .env.example .env $php artisan key:generate
to change .env.example file to .env file.
Setup your database setting in to project.
for command line
edit and set your database name, host, password
for my case i have these credential for the database system.
$php composer.phar install
it will create your vendor file for the laravel project.
php artisan key:generate
It will create key for project CSRF token.
php artisan migrate
it is for making table schema and its primary seeds(data) which are written in migration folder.
php artisan db:seed to run seeders, if any.
Primary seeds(data) which are written in migration folder.
php artisan serve