Laravel 5.2 package for replacing auth theme generated by
$ php artisan make:auth
Via Composer
$ composer require ganga/laravel-auth-themes
Laravel Auth Themes
creates a php artisan
command to enable you download auth themes from github.
Once you have required this package, go to config/app.php
and add it to service providers.
$providers = [
...
...
...,
Ganga\AuthThemes\AuthThemesServiceProvider::class,
];
$aliases = [
...
...
...
'AuthTheme' => App\Providers\RouteServiceProvider::class,
];
Then head over to your terminal and vendor:publish
the package. This simply creates a new console Command file in your app/Console/Commands
directory called AuthThemeCommand
.
$ php artisan vendor:publish
We need to let Laravel's artisan know about this new command. So, head over to the app/Console/Kernel.php
file and add the following under the commands array.
protected $commands = [
Commands\AuthThemeCommand::class,
];
Now, you need to first generate laravel default auth.
$ php artisan make:auth
This artisan command creates some blade view files in your reources\views
folder. This are what Laravel Auth Themes will replace. Currently, there's only one repo with the structure of the default theme. But I will list them here as time goes. Feel free to create a theme too, and add a link here and send a PR.
$ php artisan auth:theme https://github.com/gangachris/default-laravel-auth-theme.git
The easiest way to make any theme is to run the php artisan make:auth
command, then edit the generated html, then pusblish it to a public repo.
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email ganga.chris@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.