PHP code example of amirulislam / laravel-simplify-crud

1. Go to this page and download the library: Download amirulislam/laravel-simplify-crud library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

amirulislam / laravel-simplify-crud example snippets


// config/simplify-crud.php
'view_theme' => 'tailwind',  // or 'bootstrap'

// config/simplify-crud.php

return [
    'paths' => [
        'model'      => app_path('Models'),
        'controller' => app_path('Http/Controllers'),
        'request'    => app_path('Http/Requests'),
        'migration'  => database_path('migrations'),
        'views'      => resource_path('views'),
        'routes'     => base_path('routes/web.php'),
        'api_routes' => base_path('routes/api.php'),
    ],

    'namespaces' => [
        'model'      => 'App\\Models',
        'controller' => 'App\\Http\\Controllers',
        'request'    => 'App\\Http\\Requests',
    ],

    'view_theme'  => env('SIMPLIFY_CRUD_THEME', 'tailwind'),
    'timestamps'  => true,
    'soft_deletes' => false,
];

app/Models/ProductCategory.php
app/Http/Controllers/ProductCategoryController.php
app/Http/Requests/StoreProductCategoryRequest.php
app/Http/Requests/UpdateProductCategoryRequest.php
database/migrations/2026_01_01_000000_create_product_categories_table.php
routes/web.php  ← Route::resource appended
resources/views/product-categories/index.blade.php
resources/views/product-categories/create.blade.php
resources/views/product-categories/edit.blade.php
resources/views/product-categories/show.blade.php
bash
php artisan migrate
bash
php artisan vendor:publish --tag=simplify-crud-config
bash
php artisan vendor:publish --tag=simplify-crud-stubs