PHP code example of ipunkt / laravel-scaffolding
1. Go to this page and download the library: Download ipunkt/laravel-scaffolding 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/ */
ipunkt / laravel-scaffolding example snippets
/**
* Resource Model
*/
'Model' => [
'stub' => resource_path('stubs/model.stub'),
'target' => app_path('Models/{{Model}}.php'),
'append' => false, // optional, false by default
],
bash
php artisan scaffold ModelName