-
Notifications
You must be signed in to change notification settings - Fork 144
home
Nabeel Shahzad edited this page Jun 10, 2017
·
14 revisions
- basic CRUD and admin is generated using InfyOm Laravel Generator
- roles and permissions generated using entrust
- all data access is done through a
Repository
pattern/layer, inApp\Repositories
- all business logic/rules that touch multiple Repositories and/or Models go into
Service
classes -App\Services
Use the basic generator, but then make some changes
- first generate using a model name:
php artisan infyom:scaffold {Model}
- Move newly generated CRUD controller from
App\Controllers\{Model}
toApp\Controllers\Admin
- Move the views from
resources/views/{model}
intoresources/views/admin/{model}
- modify the
@extends('layouts.app')
to@extends('admin.app')
(if being put into the admin panel)
- modify the