Package Data | |
---|---|
Maintainer Username: | gangachris |
Maintainer Contact: | ganga.chris@gmail.com (Ganga Christopher) |
Package Create Date: | 2019-11-09 |
Package Last Update: | 2016-03-06 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-17 03:05:21 |
Package Statistics | |
---|---|
Total Downloads: | 260 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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.