benbjurstrom/curator-model
Laravel package containing Migrations, Models, and Seeds for the benbjurstrom/curator application.
15
| Install | |
|---|---|
composer require benbjurstrom/curator-model |
|
| Latest Version: | 0.0.1 |
| PHP: | >=5.6.4 |
| License: | MIT |
| Last Updated: | Jan 18, 2017 |
| Links: | GitHub · Packagist |
Maintainer: benbjurstrom
Curator Model
Laravel package containing migrations, models, and seeds for the benbjurstrom/curator application.
Setup Instructions
Package Installation
Install the package using composer:
composer require benbjurstrom/curator-model
Register the service provider in your application:
// config/app.php
'providers' => [
...
BenBjurstrom\CuratorModel\CuratorModelServiceProvider::class,
];
Migrations
Once registered migrate your database to setup the following table structure:
artisan migrate

Seeders
Optionally seed the database with sample data by including the package's seeder class:
// database/seeds/DatabaseSeeder.php
class DatabaseSeeder extends Seeder
{
public function run()
{
...
$this->call(BenBjurstrom\CuratorModel\Seeds\DatabaseSeeder::class);
}
}
Note that when rolling back the migrations database records are saved to the seeds/json/ directory.