PHP code example of tyghaykal / laravel-seed-generator

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

    

tyghaykal / laravel-seed-generator example snippets

bash
php artisan vendor:publish
bash
php artisan seed:generate --model-mode --models=Master\Type
bash
php artisan seed:generate --model-mode --models=Master\Type --limit=10
bash
php artisan seed:generate --model-mode --models=Master\Type --ids="1,2,3"
bash
php artisan seed:generate --model-mode --models=Master\Type --ignore-ids="1,2,3"
bash
php artisan seed:generate --model-mode --models=Master\Type --relations="relationName1,relationName2"
bash
php artisan seed:generate --model-mode --models=Master\Type --relations="relationName1,relationName2" --relations-limit=10
bash
php artisan seed:generate --model-mode --models=Master\Type --no-seed