PHP code example of codebider / generate-crud

1. Go to this page and download the library: Download codebider/generate-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/ */

    

codebider / generate-crud example snippets


php artisan vendor:publish --tag=crud-generator-config

    php artisan generate:crud

            Resource controller created successfully at G:\laragon\www\Expense\app\Http\Controllers\Api\ProductController.php
        

            Where do you want to add routes? [web.php]:
            [0] api.php
            [1] web.php
            >
        

            Generating web routes...
            Added route to G:\laragon\www\Expense\routes/web.php
        

            Generating views...
            Created view file: G:\laragon\www\Expense\resources\views\Api\products/index.blade.php