79 lines
1.7 KiB
PHP
79 lines
1.7 KiB
PHP
|
<?php
|
||
|
|
||
|
namespace Database\Seeders;
|
||
|
|
||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||
|
use Illuminate\Database\Seeder;
|
||
|
use Illuminate\Support\Facades\DB;
|
||
|
|
||
|
class GenreSeeder extends Seeder
|
||
|
{
|
||
|
/**
|
||
|
* Run the database seeds.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function run()
|
||
|
{
|
||
|
DB::table('genres')->insert([
|
||
|
[
|
||
|
'genre_name' => 'Action',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Adventure',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Animation',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Comedy',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Crime',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Documentary',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Drama',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Family',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Fantasy',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'History',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Horror',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Music',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Mystery',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Romance',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Science Fiction',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'TV Movie',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Thriller',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'War',
|
||
|
],
|
||
|
[
|
||
|
'genre_name' => 'Western',
|
||
|
],
|
||
|
]);
|
||
|
}
|
||
|
}
|