iag/blank-auth

Laravel authentication views

v2.0.0 2020-03-29 13:40 UTC

This package is auto-updated.

Last update: 2024-04-29 04:27:14 UTC


README

This package gives you a blank starting point for your authentication views.

v2.0 supports Laravel ^7.0

Beside the most common laravel/ui package blank-auth gives you only the general blank starting point, without any preset, of the common authentication views.

Setup

  1. Require the package with Composer
composer require iag/blank-auth

or inside your composer.json:

{
    "iag/blank-auth": "^2.0"
}
  1. Once the iag/blank-auth package has been installed, you MUST install the frontend views using the Install Artisan command:
php artisan blankauth:install
  1. Go to your ../resources/views folder and style or modify the auth views as your needs.

  2. Open the auth routes on routes/web.php using the Auth::routes(); function.

  3. If you wish to use the account landing page, remember to open the route:

Route::get('/account', function () {
    return view('account.index');
})->name('account.index');

or simply:

Route::view('/account', 'account.index')->name('account.index');

Integration with laravel/ui

This package can be easily integrate with laravel/ui. Use iag/blank-auth to scaffold a blank, solid and semantic structure for your auth process and use laravel/ui to manage the entire auth process.

  1. You can require laravel/ui package:
{
    "iag/blank-auth": "^2.0",
    "laravel/ui": "^2.0"
}
  1. Integrates only controllers:
php artisan ui:controllers
  1. Path customization

You can customize the post-authentication redirect path using the HOME constant defined in your RouteServiceProvider:

public const HOME = '/account';

Extras

This package gives you a solid HTML5 semantic for the following views:

  • a layout and navbar preset,
  • a blank account index views,
  • all Laravel auth views.