iag/blank-auth
Composer 安装命令:
composer require iag/blank-auth
包简介
Laravel authentication views
README 文档
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
- Require the package with Composer
composer require iag/blank-auth
or inside your composer.json:
{
"iag/blank-auth": "^2.0"
}
- Once the
iag/blank-authpackage has been installed, you MUST install the frontend views using the Install Artisan command:
php artisan blankauth:install
-
Go to your
../resources/viewsfolder and style or modify the auth views as your needs. -
Open the auth routes on
routes/web.phpusing theAuth::routes();function. -
If you wish to use the
accountlanding 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.
- You can require
laravel/uipackage:
{
"iag/blank-auth": "^2.0",
"laravel/ui": "^2.0"
}
- Integrates only controllers:
php artisan ui:controllers
- 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.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-08