Composer

================

curl -sS https://getcomposer.org/installer | php

 

Installing laravel

====================

1. composer global require laravel/installer

2. PATH=$PATH:~/.composer/vendor/bin

3. laravel new <projectname>

 

chmod -R 775 storage

chmod -R 775 bootstrap/cache

 

After i got 500 error

==============

 

tail -f /Applications/MAMP/logs/php_error.log

Found :syntax error, unexpected '=' blog/vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 388

 

I changed my php version 7.1  solved my problem

 

 

Users Creation,

=====================

php artisan make:auth ( helps to create the users table and reset password table )

If not created use below  command to create user

php artisan make:migration create_users_table ( Create users table or any other table )

 

I have created using the below code to create the users' table 

 

 $table->increments('id');

 $table->string('name');

 $table->string('email')->unique();

 $table->string('password');

 $table->rememberToken();

 $table->timestamps();

 $table->charset = 'utf8';

 $table->collation = 'utf8_unicode_ci';

 

Please make sure use below line

 $table->charset = 'utf8';

 $table->collation = 'utf8_unicode_ci';

 

 

Also created bellow files

===============

blog/resources/views - under path 

-------------------

auth/login.blade.php 

auth/register.blade.php 

auth/verify.blade.php

auth/passwords/email.blade.php

auth/passwords/reset.blade.php

layouts/app.blade.php

home.blade.php