Version 0.2
The goal of this package is to provide a small extendable framework to create overview and CRUD (Create, Read, Update, Delete) pages for your entities programmatically. When familiar with it, you should be able to create a simple new entity with CRUD functionality under the hour.
The html contains classes to make it instantly look okay with default Bootstrap.
###1 Dependencies
###2 Installation
Begin by installing this package through Composer. Edit your project's
composer.json file to require rasrobin/crud.
composer require "rasrobin/crud": "^0.2.0"
Run the following command to make the included javascript assets available.
php artisan vendor:publish --tag=public --force
HasCrud.CrudController.public $model tot the Model you created./**
* Class BlogController
*/
class BlogController extends CrudController
{
/**
* @var HasCrud $model
*/
public $model = Blog::class;
}
crudFormTemplate() in your Model return it's path/name./**
* {@inheritdoc}
*/
public static function crudFormTemplate()
{
return 'rasrobin\blog::blog_form';
}
Route::group(['prefix' => 'admin', 'middleware' => ['web', 'auth']], function(){
Route::resource('blog', 'Rasrobin\Blog\Controllers\BlogController');
});
How can I help you explore Laravel packages today?