database/factories/AssetFactory.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 [
            'asset_code' => 'TT' . $this->faker->unique()->randomNumber(6),
            'asset_name' => $this->faker->words(7, true),
            'specific' => $this->faker->realText(),
            'installed_date' => $this->faker->dateTime(),
            'state_key' => $this->faker->randomElement(Asset::getAllStates()),
        ];
    }
public function definition ( ) { return [ 'asset_code' => 'TT' . $ this -> faker -> unique ( ) -> randomNumber ( 6 ) , 'asset_name' => $ this -> faker -> words ( 7 , true ) , 'specific' => $ this -> faker -> realText ( ) , 'installed_date' => $ this -> faker -> dateTime ( ) , 'state_key' => $ this -> faker -> randomElement ( Asset :: getAllStates ( ) ) , ] ; }
Define the model's default state.
Define the model ' s default state .