PHP code example of timwassenburg / laravel-improved-resource-controllers

1. Go to this page and download the library: Download timwassenburg/laravel-improved-resource-controllers 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/ */

    

timwassenburg / laravel-improved-resource-controllers example snippets

 artisan make:controller
bash
php artisan vendor:publish --provider="TimWassenburg\ImprovedResourceControllers\ImprovedResourceControllersServiceProvider" --tag="config"
bash
php artisan vendor:publish --provider="TimWassenburg\ImprovedResourceControllers\ImprovedResourceControllersServiceProvider" --tag="stubs"
bash
php artisan make:controller CustomerController --resource
bash
php artisan make:controller CustomerController --resource --api
bash
php artisan make:controller CustomerController --resource --model=Customer
bash
php artisan make:controller CustomerController --resource --model=Customer --api
bash
php artisan make:controller CityController --resource --parent=Country --model=City