database/factories/TokoFactory.php
/**
     * Define the model's default state.
     *
     * @return array
     */
Define the model's default state.
@return array
Define the model ' s default state . @return array
public function definition()
    {
        return [
            'hash'      => date('dmy') . Str::random(8),
            'nama'      => $this->faker->sentence(3),
            'pin'       => Str::random(5),
            'pemilik'   => $this->faker->name(),
            'phone'     => $this->faker->phoneNumber(),
            'user_id'   => 1
        ];
    }
public function definition ( ) { return [ 'hash' => date ( 'dmy' ) . Str :: random ( 8 ) , 'nama' => $ this -> faker -> sentence ( 3 ) , 'pin' => Str :: random ( 5 ) , 'pemilik' => $ this -> faker -> name ( ) , 'phone' => $ this -> faker -> phoneNumber ( ) , 'user_id' => 1 ] ; }
Define the model's default state.
Define the model ' s default state .