PHP code example of tdebatty / laravel-resource-generator
1. Go to this page and download the library: Download tdebatty/laravel-resource-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/ */
tdebatty / laravel-resource-generator example snippets
artisan make:controller PostController --resource
artisan resource:make Model -i fa
artisan resource:make Model -i fa4
$ nano database/migrations/*_create_posts_table.php
$ php artisan migrate
$ php artisan serve