PHP code example of ranitachi / simple-crud-generator

1. Go to this page and download the library: Download ranitachi/simple-crud-generator 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/ */

    

ranitachi / simple-crud-generator example snippets


'providers' => [
    Fcn\SimpleCrudGenerator\SimpleCrudGeneratorServiceProvider::class,
];

Route::prefix('admin')->group(function () {
    Route::resource('posts', \App\Http\Controllers\PostController::class);
});
bash
php artisan vendor:publish --provider="Fcn\SimpleCrudGenerator\SimpleCrudGeneratorServiceProvider"
bash
php artisan make:simple-crud posts

├── app/
│   ├── Models/Post.php
│   ├── Services/PostService.php
│   └── Http/
│       ├── Controllers/PostController.php
│       └── Requests/PostRequest.php

├── resources/views/pages/post/
│   ├── index.blade.php
│   ├── create.blade.php
│   └── edit.blade.php

├── resources/views/components/
│   ├── form-inputs.blade.php
│   └── datatable.blade.php