<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Media;
use Faker\Generator as Faker;

$factory->define(Media::class, function (Faker $faker) {
    $title = $faker->name;
    return [
        'title' => $title,
        'slug' => str_slug($title),
        'media_type' => $faker->randomElement(array('PAPER','ELECTRONIC')),
        'media_img' => $faker->imageUrl($width = 640, $height = 480),
        'description' => $faker->paragraph,
        'status' => $faker->randomElement(array('DEACTIVE','ACTIVE')),
    ];
});
