PHP code example of amptech / laravel-solid-structure

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

    

amptech / laravel-solid-structure example snippets


// routes/api.php
use App\Http\Controllers\ProductController;

Route::apiResource('products', ProductController::class);
bash
php artisan make:solid Product --test
bash
# Con ruta personalizada
php artisan make:solid Product --path=V1/Admin

# Paginación personalizada
php artisan make:solid Product --paginate=20

# Sobrescribir archivos
php artisan make:solid Product --force