dev-master
9999999-devcrud generator for laravel backend
MIT
The Requires
by Elsayed Nofal
crud generator for laravel backend
This package to generate model and crud from database table and add it to laravel backend., (*1)
1- model generator package from url : https://github.com/hosamaldeen/laracrud, (*2)
2- image Manager package from url : https://github.com/elsayednofal/imagemanager, (*3)
composer require elsayednofal/easycrud:dev-master
add service provider to config/app.php, (*4)
Elsayednofal\Imagemanager\ImageManagerServiceProvider::class,
Hosamaldeen\LaraCRUD\LaraCRUDServiceProvider::class,
Elsayednofal\EasyCrud\EasyCrudServiceProvider::class,
Elsayednofal\EasyCrud\EasyCrudRouteServiceProvider::class,
, (*5)
in alias add the line
'ImageManager' => Elsayednofal\Imagemanager\Http\Controllers\Facades\ImageManager::class
, (*6)
publish assets with command php artisan vendor:publish
, (*7)
php artisan migrate
you can edit your configration throw file config/easycrud.php - "backend_layout" the path to your layout blade of backend like
'backend_layout'=>'backend.layout.master',
, (*8)
"layout_content_area" the yield section of content
like 'layout_content_area'=>'content',
, (*9)
"middlewares" the array of middleware names should be added to any genrated crud
like 'middlewares'=>['auth','is_admin' ],
, (*10)
"url_prefix" the url prefix for backend or admin area should be add before crud name in url like 'url_prefix'=>'backend',
the url should br "./public/backend/products", (*11)
"controllers_directory" the folder in app\http\controller directory to put generated controller into it , like "controllers_directory"=>"backend",
, (*12)
"templates_path" the templete path which crud generate any file from it , like "templates_path"=>"backend"
, (*13)
{your app path}/easy-crud
you will see the path of generated model you also get the table columns to choose theme and relation in database, (*14)
you can find your old crud and regenrate it by calling url :
{your app path}/easy-crud/old
, (*15)
## Edit crud templete, (*16)
The easycrud package publish templete file that built any crud from it , It publish it in the path that define in config file "config/easycrud.php" in key "templates_path", (*17)
The temolete made to work with any backend theme in bootstrap and jquery, (*18)
so if you want to customize the templte you should edit files in that path, (*19)
crud generator for laravel backend
MIT