<?php

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

use App\Author;
use Faker\Generator as Faker;

$factory->define(Author::class, function (Faker $faker) {
    $title = $faker->name;
    return [
        'title' => $title,
        'slug' => str_slug($title),
        'designation' => $faker->jobTitle,
        'dob' => $faker->dateTimeThisCentury->format('Y-m-d'),
        'description' => $faker->paragraph,
        'author_feature' => $faker->name,
        'facebook_id' => $faker->userName,
        'twitter_id' => $faker->userName,
        'youtube_id' => $faker->userName,
        'pinterest_id' => $faker->userName,
        'author_img' => $faker->imageUrl($width = 640, $height = 480), // 'http://lorempixel.com/640/480/',
        'status' => $faker->randomElement(array('DEACTIVE','ACTIVE')),
    ];
});
