PHP code example of bensherred / laravel-make-model

1. Go to this page and download the library: Download bensherred/laravel-make-model 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/ */

    

bensherred / laravel-make-model example snippets

config/app.php
 php
'providers' => [
    // ...
    BenSherred\MakeModel\MakeModelServiceProvider::class,
];
 bash
php artisan make:model Post --policy
 bash
php artisan make:controller PostController --model=Post --policy
 bash
php artisan make:controller PostController --model=Post --policy=PostPolicy
 bash
php artisan make:controller PostController --resource --requests
 bash
php artisan make:controller PostController --model=Post --policy --requests
 bash
php artisan make:view blog/index