database/seeds/AlbumSeed.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $items = [
            ['id' => 1, 'title' => 'New Album', 'description' => 'My New ',],
        ];
        foreach ($items as $item) {
            \App\Album::create($item);
        }
    }
public function run ( ) { $ items = [ [ 'id' => 1 , 'title' => 'New Album' , 'description' => 'My New ' , ] , ] ; foreach ( $ items as $ item ) { \ App \ Album :: create ( $ item ) ; } }
Run the database seeds.
Run the database seeds .