Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Bauhaususer Laravel Package

krafthaus/bauhaususer

Adds a simple login/user system for the Bauhaus admin package. Installs via Composer, registers the service provider, updates Bauhaus auth permission to use Auth::check(), switches the auth model to BauhausUser\User, runs migrations, and creates users via Artisan.

View on GitHub
Deep Wiki
Context7

Bauhaus User - User integration for Bauhaus

Total Downloads License

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

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

'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

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

to:

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

Update auth.model

In app/auth.php update

'model' => 'User'

to:

'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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
adachsoft/php-code-style