database/factories/SzenzorFactory.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,
            'berendezes_id' => rand(1,5),
            'tipus' => Str::random(10),
            'fogyasztas' => rand(100,25000),
            'allapot' => rand(0,1),
        ];
    }
public function definition ( ) { return [ 'id' => null , 'berendezes_id' => rand ( 1 , 5 ) , 'tipus' => Str :: random ( 10 ) , 'fogyasztas' => rand ( 100 , 25000 ) , 'allapot' => rand ( 0 , 1 ) , ] ; }
Define the model's default state.
Define the model ' s default state .