PHP code example of noamanahmed / laravel-api-crud-generator

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

    

noamanahmed / laravel-api-crud-generator example snippets


php artisan api-crud-generator:create Post
php artisan api-crud-generator:create Comment
php artisan api-crud-generator:delete Comment


use App\Http\Controllers\PostController;

Route::apiCrudResource('posts', PostController::class);


bash
php artisan vendor:publish --tag="api-crud-generator-provider"
php artisan vendor:publish --tag="api-crud-generator-stubs"
bash
php artisan api-crud-generator:init