gangachris / laravel-auth-themes by gangachris

Laravel 5.2 Generator for Authentication themes
258
0
2
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-04-19 15:13:11
Package Statistics
Total Downloads: 258
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Laravel Auth Themes

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

  1. Default Bootstrap Theme
  2. Materialize CSS Theme

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.