π Installation
DBContextSeeder is a Laravel package that helps you seed your database using a class-based and reusable structure. It allows you to break down your seeding logic into multiple seeders and run them in a controlled way.
π Installationβ
π¦ Install via Composer (Recommended)β
composer require ipleiria/dbcontextseeder
This will install the package from Packagist and make it ready to use in your Laravel project.
π Install Manually (Local Development)β
1. Clone the Repositoryβ
git clone https://github.com/palma140/DBContextSeeder.git packages/dbcontextseeder
We recommend cloning it into a
packages/
folder in the root of your Laravel project.
2. Update composer.json
β
In your Laravel project's composer.json
, add the following under the repositories
section:
"repositories": [
{
"type": "path",
"url": "packages/dbcontextseeder"
}
],
"require": {
"ipleiria/dbcontextseeder": "*"
}
3. Install the Packageβ
Run:
composer update ipleiria/dbcontextseeder
β You're Doneβ
The package is now installed and ready to use!