database/factories/BerendezesFactory.php
/**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
Define the model's default state.
@return array
Define the model ' s default state . @return array
public function definition()
    {
        return[
            'id'=>null,
            'uzem_id' => rand(1,2),
            'tipus' => Str::random(6),
            'allapot' => rand(1,2),
        ];
    }
public function definition ( ) { return [ 'id' => null , 'uzem_id' => rand ( 1 , 2 ) , 'tipus' => Str :: random ( 6 ) , 'allapot' => rand ( 1 , 2 ) , ] ; }
Define the model's default state.
Define the model ' s default state .