dev-master
9999999-devUser support for bauhaus
MIT
The Requires
- php >=5.4.0
- krafthaus/bauhaus dev-master
by KraftHaus
user backend login users bauhaus krafthaus
User support for bauhaus
Bauhaus itself is a bring-your-own-authentication kind of package and therefor does not, by default, come with a user login. To fix this you can either: - Use something like Sentry - Or use Bauhaus User, (*2)
Add bauhaus user to your composer.json file:, (*3)
"require": { "krafthaus/bauhaususer": "dev-master" }
Use composer to install this package., (*4)
$ composer update
'providers' => array( 'KraftHaus\Bauhaus\BauhausServiceProvider', // This should already be there 'KraftHaus\BauhausUser\BauhausUserServiceProvider' )
In app/config/packages/krafthaus/config/admin.php
update, (*5)
'auth' => [ 'permission' => function () { return true; } ]
to:, (*6)
'auth' => [ 'permission' => function () { return Auth::check(); } ]
In app/auth.php
update, (*7)
'model' => 'User'
to:, (*8)
'model' => 'KraftHaus\BauhausUser\User'
$ php artisan migrate --package=krafthaus/bauhaususer
$ php artisan bauhaus:user:register email password [firstname] [lastname]
Now, when you visit the admin url you'll be presented with a brand new, ultra awesome, login screen where you can login with you newly created user., (*9)
User support for bauhaus
MIT
user backend login users bauhaus krafthaus