<?php use Faker\Generator as Faker; $factory->define(App\Models\Tax::class, function (Faker $faker) { return [ 'id'=>1, 'rate'=>0.1, 'description'=>'GST', ]; });