PHP code example of sascha-steinbrink / laravel-csv-file-seeder

1. Go to this page and download the library: Download sascha-steinbrink/laravel-csv-file-seeder 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/ */

    

sascha-steinbrink / laravel-csv-file-seeder example snippets

 artisan db:seed
 artisan csv:seed
 artisan db:seed
 artisan csv:seed
 artisan csv:export
 artisan csv:seed
 artisan db:seed
 bash
php artisan vendor:publish --provider="SaschaSteinbrink\LaravelCsvFileSeeder\LaravelCsvFileSeederServiceProvider" --tag="config"
config/laravel-csv-file-seeder.php
 bash
php artisan csv:export
 bash
php artisan csv:seed
 php
use SaschaSteinbrink\LaravelCsvFileSeeder\LaravelCsvFileSeeder;
// ...
 public function run()
{
    // $this->call(UsersTableSeeder::class);
    $this->call(LaravelCsvFileSeeder::class);
}
 php artisan db:seed
 bash
php artisan csv:export -z true -a "dbExport"
 bash
php artisan csv:export -x "migrations,users"
config/laravel-csv-file-seeder.php