bantenprov / form-auth
名称
dev-master
2018-05-09 13:50 UTC
Requires
- php: >=5.6.4
- illuminate/support: 5.4.*
This package is not auto-updated.
Last update: 2024-09-24 17:17:19 UTC
README
form-auth
通过composer安装
$ composer require bantenprov/form-auth:dev-master
编辑config/app.php
'providers' => [ //...... Bantenprov\FormAuth\FormAuthServiceProvider::class,
artisan命令
$ php artisan vendor:publish --tag=form-auth-assets --force && php artisan migrate
$ php artisan form-auth:setup
编辑app/User.php
/** * The accessors to append to the model's array form. * * @var array */ protected $appends = [ 'photo_url', //========= 'redirect', ]; /* .................. */ /** * Get the redirect attribute. * * @return string */ public function getRedirectAttribute() { return 'siswa.pendaftaran-wizard'; }
编辑.evn
DEFAULT_USER_ROLE=siswa
添加新角色
Vue信任 > 角色 > [+]
+-------+--------------+
| name | display name |
+-------+--------------+
| siswa | Siswa |
+-------+--------------+