benbjurstrom / curator-model by benbjurstrom

Laravel package containing Migrations, Models, and Seeds for the benbjurstrom/curator application.
13
0
2
Package Data
Maintainer Username: benbjurstrom
Maintainer Contact: ben@jelled.com (Ben Bjurstrom)
Package Create Date: 2017-01-18
Package Last Update: 2017-01-18
Language: PHP
License: MIT
Last Refreshed: 2024-05-01 15:02:54
Package Statistics
Total Downloads: 13
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Curator Model

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.