2017 © Pedro Peláez
 

laravel easycrud

crud generator for laravel backend

image

elsayednofal/easycrud

crud generator for laravel backend

  • Wednesday, July 25, 2018
  • by elsayednofal
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

EasyCrud

This package to generate model and crud from database table and add it to laravel backend., (*1)

Dependancy

1- model generator package from url : https://github.com/hosamaldeen/laracrud, (*2)

2- image Manager package from url : https://github.com/elsayednofal/imagemanager, (*3)

Installation

  • install package by run command 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)

  • add easycrud tables to database with command php artisan migrate

Configration

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)

Usage

  • run url {your app path}/easy-crud
  • choose table from select box and press "show model&colums"

you will see the path of generated model you also get the table columns to choose theme and relation in database, (*14)

  • click save and then generate
  • then you should show link to you crud

Old cruds

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)

The Versions

25/07 2018

dev-master

9999999-dev

crud generator for laravel backend

  Sources   Download

MIT

The Requires

 

by Elsayed Nofal