2017 © Pedro Peláez
 

laravel-package bauhaususer

User support for bauhaus

image

krafthaus/bauhaususer

User support for bauhaus

  • Thursday, January 5, 2017
  • by jspekken
  • Repository
  • 1 Watchers
  • 0 Stars
  • 226 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Bauhaus User - User integration for Bauhaus

Total Downloads License, (*1)

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)

Installation

Add bauhaus user to your composer.json file:, (*3)

"require": {
    "krafthaus/bauhaususer": "dev-master"
}

Use composer to install this package., (*4)

$ composer update

Register the package

'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, (*5)

'auth' => [
    'permission' => function () {
        return true;
    }
]

to:, (*6)

'auth' => [
    'permission' => function () {
        return Auth::check();
    }
]

Update auth.model

In app/auth.php update, (*7)

'model' => 'User'

to:, (*8)

'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., (*9)

The Versions

05/01 2017

dev-master

9999999-dev

User support for bauhaus

  Sources   Download

MIT

The Requires

 

by KraftHaus

user backend login users bauhaus krafthaus