Skip to content
Nabeel Shahzad edited this page Jun 10, 2017 · 14 revisions

general info

code layout and generation

  • basic CRUD and admin is generated using [http://labs.infyom.com/laravelgenerator/](InfyOm Laravel Generator)
  • all data access is done through a Repository pattern/layer, in App\Repositories
  • all business logic/rules that touch multiple Repositories and/or Models go into Service classes - App\Services

laravel generator

Use the basic generator, but then make some changes

  1. first generate using a model name: php artisan infyom:scaffold {Model}
  2. Move newly generated CRUD controller from App\Controllers\{Model} to App\Controllers\Admin
  3. Move the views from resources/views/{model} into resources/views/admin/{model}
    • modify the @extends('layouts.app') to @extends('admin.app') (if being put into the admin panel)
Clone this wiki locally