Etiqueta: crud

Yet another CRUD widgets for laravel 5.2+

Yet another CRUD widgets for laravel 5.2+ README 注意:lego 尚处于开发阶段,1.0版本发布之前主要接口仍有调整的可能性,请注意查看 release note ! Example UserController.php $form = Lego::form(new User()); $form->addText('number', '编号')->required()->rule('numeric')->unique(); $form->addText('email', '邮箱')->required()->rule('email')->unique(); return $form->view('layout', ['form' => $form]); layout.blade.php <!doctype html> <html lang="en"> <head> @include('lego::styles') </head> <body> {!! $form !!} @include('lego::scripts') </body>...

CRUD means CREATE, READ, UPDATE AND DELTE are common work in almost every web application. Laravel has also CRUD. We use Model, View, Controller, Request, Route’s for CRUD. A well structured database are the blueprint of a web application. So We can create Model, View, Controller, Request from a dat…

CRUD means CREATE, READ, UPDATE AND DELTE are common work in almost every web application. Laravel has also CRUD. We use Model, View, Controller, Request, Route’s for CRUD. A well structured database are the blueprint of a web application. So We...

Easy CRUD for Symfony

Easy CRUD for Symfony README Easy CRUD for Symfony namespace AppBundleController; use AppBundleEntityProduct; use AppBundleFormTypeProductType; use AppBundleGridTypeProductGridType; use PrezentCrudBundleControllerCrudController; use PrezentCrudBundleModelConfiguration; class ProductController extends CrudController { protected function configure(Request $request, Configuration $config) { $config ->setEntityClass(Product::class) ->setFormType(ProductType::class) ->setGridType(ProductGridType::class) ; } } The...