PHP code example of artchik / make-model-singular

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

    

artchik / make-model-singular example snippets


    protected $table = 'post';
    
bash
    php artisan make:model Post
    
bash
    php artisan make:migration create_post_table --table=post
    
bash
php artisan make:model-singular Post --table=my_post
bash
php artisan make:model-singular Post --cdir=API