PHP code example of gustavosantarosa / controller-basics-extension

1. Go to this page and download the library: Download gustavosantarosa/controller-basics-extension 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/ */

    

gustavosantarosa / controller-basics-extension example snippets


Route::middleware(\QuantumTecnology\ControllerBasicsExtension\Middleware\CryptographyMiddleware::class)
    ->group(base_path('routes/api.php'));

GET /coupons/0199a3f2-7c1e-7b3a-9d4e-1f2a3b4c5d6e        → $id = '0199a3f2-...' (intacto)
GET /coupons/v5rNVenmKP                                   → $id = 42
GET /items?coupon_ids[]=v5rNVenmKP&coupon_ids[]=0199a3f2-... → [42, '0199a3f2-...']