@extends('backend.layouts.app') @section('title', 'CRUD Generator') @push('styles') @endpush @section('content')

CRUD Generator

Select an existing Model, preview the generated controller, form request, and views, then generate.

Back to ArtisanGen

How it works

  • Select an existing Model Class. The generator reads its database table.
  • Customize the Controller Namespace, Request Namespace, and View Path if needed.
  • Click Preview to see the generated files before creating them.
  • Click Generate to create the files.
  • After generating: manually add the route to routes/web.php, create permissions (e.g. module.view, module.create, etc.), assign them to roles, and add a sidebar menu item if needed.
@if($flashSuccess)
@endif

Configure CRUD

Example: app\Http\Controllers\Backend. The controller will be saved under this namespace.

File path:

Example: app\Http\Requests\Backend. The form request will be saved under this namespace.

File path:

Example: backend.module._gen.products. Views will be saved to resources/views/backend/module/_gen/products/.

Folder:
@push('scripts') @endpush @endsection