database/factories/BlogFactory.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 [
            'title'       => $this->faker->sentence(),
            'description' => $this->faker->paragraph(10),
            'slug'        => \Str::slug($this->faker->sentence()),
            'user_id'     => User::factory(),
        ];
    }
public function definition ( ) { return [ 'title' => $ this -> faker -> sentence ( ) , 'description' => $ this -> faker -> paragraph ( 10 ) , 'slug' => \ Str :: slug ( $ this -> faker -> sentence ( ) ) , 'user_id' => User :: factory ( ) , ] ; }
Define the model's default state.
Define the model ' s default state .