Laravel 5.4 fresh default project that is extended with Facebook and Google authentication. Social authentication is implemented using Socialite package.
Project is suitable if:
- fresh Laravel 5.4 default project with authentication is needed
- laravel/homestead is used for development (includes laravel/homestead package)
- phpStorm IDE is used for editing (includes Laravel IDE Helper package)
Screenshot of the login page:
$ git clone [email protected]:raigu/laravel-5-boilerplate.git path
$ cd path
$ composer install --dev
Starting boilerplate in vagrant
$ cp .env.example .env
$ php artisan key:generate
$ php vendor/bin/homestead make
$ vagrant up
$ vagrant ssh
vagrant@/home/vagrant$ cd /vagrant
vagrant@/vagrant$ php artisan migrate
Now you should see a hello wold page of the project in browser http://192.168.10.10/. To use Facebook and Google authentications you have to get id and secret and initialize variables in .env file.
If you are using phpStorm IDE then generate IDE helper files. It will help the phpStorm to recognize Facades. Go to the application root directory in vagrant machine and execute:
vagrant@/vagrant$ composer dev-update
No contributions are accepted. Author made it for his own use and it serves the author's purpose as it is. But feel free to fork it.
The raigu/laravel-5-boilerplate is open-sourced software licensed under the MIT license.