Download the PHP package florowebdevelopment/seeders without Composer
On this page you can find all versions of the php package florowebdevelopment/seeders. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package seeders
Deprecated
This package is deprecated and will not be maintained.
Seeders
This library adds seeders with versioning support for Laravel, suitable for a production environment. The seeders are stored in the database/seeders directory using JSON format. Progress is tracked in the seeders table. so that the seeder is only run once.
Install
Usage
Create a new seeder and fill it manually.
With the command below you create an empty seeder, good if you are already familiar with the JSON structure, and you want to add the data manually.
Created Seeder: /database/seeders/YYYY_MM_DD_XXXXXX_my_table.json:
In Navicat for MySQL, the same structure is used when exporting to JSON file (.json).
Create a new seeder and fill it automaticly.
With the command below you create a fully completed seeder based on existing records in a table.
Which columns are requested depends on the specified table. Columns that are not answered are not included in the seeder. At range you specify which record IDs should be included in de seeder.
Created Seeder: /database/seeders/YYYY_MM_DD_XXXXXX_my_table.json:
Running Seeders
The pending seeders are executed with the command below:
During execution it is checked whether the table and / or columns actually exist, otherwise the seeder is skipped.
Created At
If the table has a created_at column, but this is missing from the seeder, the current time is filled in.
Update Or Insert
If the id column exists in the seeder, the updateOrInsert method is used, otherwise the insert method.
All versions of seeders with dependencies
ext-json Version *