benbjurstrom/curator-model

Laravel package containing Migrations, Models, and Seeds for the benbjurstrom/curator application.

0.0.1 2017-01-18 09:02 UTC

This package is not auto-updated.

Last update: 2024-11-18 15:08:40 UTC


README

Build Status

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

Database Model

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.