database/seeders/UserSeeder.php
/**
     * Run the database seeders.
     *
     * @return void
     */
Run the database seeders.
@return void
Run the database seeders . @return void
public function run()
    {
        User::create([
            "id" => 1,
            "name" => "Pooh1",
            "email" => "pooh1@gmail.com",
            "password" => "password"
        ]);
        User::create([
            "id" => 2,
            "name" => "Pooh2",
            "email" => "pooh2@gmail.com",
            "password" => "password"
        ]);
        User::create([
            "id" => 3,
            "name" => "Pooh3",
            "email" => "pooh3@gmail.com",
            "password" => "password"
        ]);
        Task::created([
            "user_id" => 1,
            "description" => "dog",
        ]);
        Task::created([
            "user_id" => 2,
            "description" => "dog",
        ]);
        Task::created([
            "user_id" => 3,
            "description" => "dog",
        ]);
    }
public function run ( ) { User :: create ( [ " id " => 1 , " name " => " Pooh1 " , " email " => " pooh1@gmail.com " , " password " => " password " ] ) ; User :: create ( [ " id " => 2 , " name " => " Pooh2 " , " email " => " pooh2@gmail.com " , " password " => " password " ] ) ; User :: create ( [ " id " => 3 , " name " => " Pooh3 " , " email " => " pooh3@gmail.com " , " password " => " password " ] ) ; Task :: created ( [ " user_id " => 1 , " description " => " dog " , ] ) ; Task :: created ( [ " user_id " => 2 , " description " => " dog " , ] ) ; Task :: created ( [ " user_id " => 3 , " description " => " dog " , ] ) ; }
Run the database seeders.
Run the database seeders .
#Task