krafthaus/bauhaus

The missing Laravel 4 Admin Generator

Installs: 1 142

Dependents: 1

Suggesters: 1

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 35

Language:CSS

Type:laravel-package

dev-master 2017-01-05 22:41 UTC

This package is auto-updated.

Last update: 2024-10-29 04:30:55 UTC


README

Build Status Total Downloads License Code Climate

Bauhaus is an admin generator / builder / interface for Laravel with scoping, exporting and filtering functionality. With Bauhaus you can easily create visual stunning lists, forms and filters for your models.

Use Bauhaus if you want:

  • Create list and forms easily tightly coupled on your models
  • A nice and clean admin interface
  • and much, much more

Bauhaus is currently available in the following languages:

  • English
  • Brazilian (Thanks willmkt)
  • Dutch

Warning: Right now, Bauhaus is a moving target. Every day new changes will be pushed possibly breaking the design and/or inner workings. If you're having trouble running this package, please consider running the php artisan asset:publish krafthaus/bauhaus and/or the php artisan config:publish krafthaus/bauhaus command. Thank you!

Documentation is located here.

Bauhaus List Bauhaus Form

Installation

Add bauhaus to your composer.json file:

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

Use composer to install this package.

$ composer update

Registering the package

'providers' => array(
	// ...
	'KraftHaus\Bauhaus\BauhausServiceProvider',
	'Intervention\Image\ImageServiceProvider',
)

Add the admin folder to the app/ directory and put the following line in your composer.json file:

"autoload": {
	"classmap": [
		"app/admin"
	]
},

Then publish the config file with php artisan config:publish krafthaus/bauhaus. This will add the main bauhaus config file in your application config directory.

And last but not least you need to publish to package's assets with the php artisan asset:publish krafthaus/bauhaus command.

Creating your first Bauhaus model

To build your first (and most exciting) admin controller you'll have to follow the following easy steps:

Run $ php artisan bauhaus:scaffold --model=name where name is the name of the model you want to use.

This will create 3 files:

  • A new (empty) model in app/models/YourModelName.
  • A new migration in the app/database/migrations directory.
  • And ofcourse a Baushaus model file in app/admin.

Support

Have a bug? Please create an issue here on GitHub that conforms with necolas's guidelines.

License

This package is available under the MIT license.