ganga / laravel-auth-themes
Laravel 5.2 Generator for Authentication themes
Requires
- php: ~5.5|~7.0
- symfony/process: ^3.0
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2024-11-09 19:39:10 UTC
README
Laravel 5.2 package for replacing auth theme generated by
$ php artisan make:auth
Install
Via Composer
$ composer require ganga/laravel-auth-themes
Usage
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.
List of available themes
Change log
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email ganga.chris@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.