PHP code example of grixu / socius-models

1. Go to this page and download the library: Download grixu/socius-models 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/ */

    

grixu / socius-models example snippets

bash
# php artisan socius:model-name ModelNameInLocalApp
# Eg:
php artisan socius:product MyProduct
bash
php artisan socius:product MyProduct Custom\\Namespace\\Models Custom\\Namespace\\Factories
bash
# php artisan socius:model-name-factory ModelNameInLocalApp
# Eg:
php artisan socius:product-factory MyFactory

# With custom namespace:
php artisan socius:product-factory MyFactory Custom\\Namespace\\Factories Custom\\Namespace\\Models