https://github.com/timbroddin/bauhaususer
User integration for Bauhaus
https://github.com/timbroddin/bauhaususer
Last synced: 10 months ago
JSON representation
User integration for Bauhaus
- Host: GitHub
- URL: https://github.com/timbroddin/bauhaususer
- Owner: TimBroddin
- License: gpl-2.0
- Created: 2014-09-05T12:09:19.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-05T12:12:46.000Z (almost 12 years ago)
- Last Synced: 2025-09-12T04:01:02.503Z (10 months ago)
- Language: PHP
- Size: 127 KB
- Stars: 0
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Bauhaus User - User integration for [Bauhaus](https://github.com/krafthaus/bauhaus)
---
[](https://packagist.org/packages/krafthaus/bauhaususer)
[](https://packagist.org/packages/krafthaus/bauhaususer)
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](https://github.com/cartalyst/sentry)
- Or use Bauhaus User
Installation
---
Add bauhaus user to your composer.json file:
```
"require": {
"krafthaus/bauhaususer": "dev-master"
}
```
Use composer to install this package.
```
$ composer update
```
### Register the package
```php
'providers' => array(
'KraftHaus\Bauhaus\BauhausServiceProvider', // This should already be there
'KraftHaus\BauhausUser\BauhausUserServiceProvider'
)
```
### Update auth.permission
In `app/config/packages/krafthaus/config/admin.php` update
```php
'auth' => [
'permission' => function () {
return true;
}
]
```
to:
```php
'auth' => [
'permission' => function () {
return Auth::check();
}
]
```
### Update auth.model
In `app/auth.php` update
```php
'model' => 'User'
```
to:
```php
'model' => 'KraftHaus\BauhausUser\User'
```
### Run the migrations
```
$ php artisan migrate --package=krafthaus/bauhaususer
```
### Create your first user
```
$ 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.