kamona/fortify-bootstrap
最新稳定版本:v1.0.3
Composer 安装命令:
composer require kamona/fortify-bootstrap
包简介
Front-end scafolding for laravel/fortify based on bootstrap
README 文档
README
Use laravel/ui front-end bootstrap scaffolding with laravel/fortify.
Note
We recommend installing this package on a project that you are starting from scratch.
Usage
-
Fresh install Laravel >= 8.0 and
cdto your app. -
Install this preset via
composer require kamona/fortify-bootstrap. Laravel will automatically discover this package. No need to register the service provider, And also no need to installlaravel/fortifyit will be installed automatically. -
Use
php artisan fortstrap:install. (NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries inroutes/web.phpand runnpm install && npm run dev) -
Configure your database.
-
Run
php artisan migrate. -
npm install && npm run dev -
php artisan serve
Note
All Fortify features are enabled by default except email verification. To enable it edit your Models/User.php model
use Illuminate\Contracts\Auth\MustVerifyEmail; class User extends Authenticatable implements MustVerifyEmail { // .... }
Uncomment this line in app/Providers/FortifyBootstrapServiceProvider.php.
public function boot() { // ... Fortify::verifyEmailView(function () { return view('auth.verify-email'); }); // .... }
Uncomment this line in config/fortify.php.
'features' => [ // ... Features::emailVerification(), // ... ],
Enable, Disable feature
See laravel/fortify docs. and don't forget to disable, enable views in app/Providers/FortifyBootstrapServiceProvider.php
Edit views
Layouts views/layouts.
Profile views/profile/edit.blade.php.
Screens
| Screens |
|---|
![]() |
![]() |
![]() |
![]() |
![]() |
统计信息
- 总下载量: 10.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-27




