mnshankar/auth-scaffold
Laravel 5.1 Authentication Scaffold
Laravel 5.0 had this cool "opt-in" artisan command to generate files required to quickly scaffold a simple authentication system. Apart from the auth views (login, register, change pwd), this also created a master layout page. This was a great time saver for me.
For unknown reasons, this feature did not make it to version 5.1. So, I modified the code that Taylor wrote for the 5.0 branch and created a package.
Installation
Pull in the package via composer:
composer require mnshankar/auth-scaffold
Add the package service provider to your config/app.php file:
/*
* Application Service Providers...
*/
mnshankar\auth\AuthServiceProvider::class,
Usage
The package exposes an artisan command called 'scaffold:auth'
php artisan scaffold:auth
Navigating to /home should bring up the auth page.
Usage Notes
It is highly recommended that you run this only on a fresh Laravel install - even prior to changing the default 'App' namespace. It replaces and copies several (key) files (controllers,routes and views).
Credits
- Laravel Framework, Taylor Otwell - Original Code
- https://github.com/laravel/framework/tree/3db46b66ea66cae863514ea5c8f6f9d08dadab35/src/Illuminate/Foundation/Console
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.