<?php use App\Role; use Faker\Generator as Faker; $factory->define(Role::class, function (Faker $faker) { return [ 'name' => 'user'// ]; });