2021-06-08 20:43:47 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
|
|
class CategoriesTableSeeder extends Seeder
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Auto generated seed file
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function run()
|
|
|
|
|
{
|
2025-05-18 16:28:40 +07:00
|
|
|
|
2021-06-08 20:43:47 +08:00
|
|
|
|
|
|
|
|
\DB::table('categories')->delete();
|
2025-05-18 16:28:40 +07:00
|
|
|
|
2021-06-08 20:43:47 +08:00
|
|
|
\DB::table('categories')->insert(array (
|
2025-05-18 16:28:40 +07:00
|
|
|
0 =>
|
2021-06-08 20:43:47 +08:00
|
|
|
array (
|
|
|
|
|
'id' => 401,
|
|
|
|
|
'mode' => 4,
|
|
|
|
|
'class_name' => 'c_movies',
|
|
|
|
|
'name' => 'Movies',
|
|
|
|
|
'image' => 'catsprites.png',
|
2025-05-18 16:28:40 +07:00
|
|
|
'sort_index' => 8,
|
2021-06-08 20:43:47 +08:00
|
|
|
'icon_id' => 1,
|
|
|
|
|
),
|
2025-05-18 16:28:40 +07:00
|
|
|
1 =>
|
2021-06-08 20:43:47 +08:00
|
|
|
array (
|
|
|
|
|
'id' => 402,
|
|
|
|
|
'mode' => 4,
|
|
|
|
|
'class_name' => 'c_tvseries',
|
|
|
|
|
'name' => 'TV Series',
|
|
|
|
|
'image' => 'catsprites.png',
|
2025-05-18 16:28:40 +07:00
|
|
|
'sort_index' => 7,
|
2021-06-08 20:43:47 +08:00
|
|
|
'icon_id' => 1,
|
|
|
|
|
),
|
2025-05-18 16:28:40 +07:00
|
|
|
2 =>
|
2021-06-08 20:43:47 +08:00
|
|
|
array (
|
|
|
|
|
'id' => 403,
|
|
|
|
|
'mode' => 4,
|
|
|
|
|
'class_name' => 'c_tvshows',
|
|
|
|
|
'name' => 'TV Shows',
|
|
|
|
|
'image' => 'catsprites.png',
|
2025-05-18 16:28:40 +07:00
|
|
|
'sort_index' => 6,
|
2021-06-08 20:43:47 +08:00
|
|
|
'icon_id' => 1,
|
|
|
|
|
),
|
2025-05-18 16:28:40 +07:00
|
|
|
3 =>
|
2021-06-08 20:43:47 +08:00
|
|
|
array (
|
|
|
|
|
'id' => 404,
|
|
|
|
|
'mode' => 4,
|
|
|
|
|
'class_name' => 'c_doc',
|
|
|
|
|
'name' => 'Documentaries',
|
|
|
|
|
'image' => 'catsprites.png',
|
2025-05-18 16:28:40 +07:00
|
|
|
'sort_index' => 5,
|
2021-06-08 20:43:47 +08:00
|
|
|
'icon_id' => 1,
|
|
|
|
|
),
|
2025-05-18 16:28:40 +07:00
|
|
|
4 =>
|
2021-06-08 20:43:47 +08:00
|
|
|
array (
|
|
|
|
|
'id' => 405,
|
|
|
|
|
'mode' => 4,
|
|
|
|
|
'class_name' => 'c_anime',
|
|
|
|
|
'name' => 'Animations',
|
|
|
|
|
'image' => 'catsprites.png',
|
2025-05-18 16:28:40 +07:00
|
|
|
'sort_index' => 4,
|
2021-06-08 20:43:47 +08:00
|
|
|
'icon_id' => 1,
|
|
|
|
|
),
|
2025-05-18 16:28:40 +07:00
|
|
|
5 =>
|
2021-06-08 20:43:47 +08:00
|
|
|
array (
|
|
|
|
|
'id' => 406,
|
|
|
|
|
'mode' => 4,
|
|
|
|
|
'class_name' => 'c_mv',
|
|
|
|
|
'name' => 'Music Videos',
|
|
|
|
|
'image' => 'catsprites.png',
|
2025-05-18 16:28:40 +07:00
|
|
|
'sort_index' => 3,
|
2021-06-08 20:43:47 +08:00
|
|
|
'icon_id' => 1,
|
|
|
|
|
),
|
2025-05-18 16:28:40 +07:00
|
|
|
6 =>
|
2021-06-08 20:43:47 +08:00
|
|
|
array (
|
|
|
|
|
'id' => 407,
|
|
|
|
|
'mode' => 4,
|
|
|
|
|
'class_name' => 'c_sports',
|
|
|
|
|
'name' => 'Sports',
|
|
|
|
|
'image' => 'catsprites.png',
|
2025-05-18 16:28:40 +07:00
|
|
|
'sort_index' => 2,
|
2021-06-08 20:43:47 +08:00
|
|
|
'icon_id' => 1,
|
|
|
|
|
),
|
2025-05-18 16:28:40 +07:00
|
|
|
7 =>
|
2021-06-08 20:43:47 +08:00
|
|
|
array (
|
|
|
|
|
'id' => 408,
|
|
|
|
|
'mode' => 4,
|
|
|
|
|
'class_name' => 'c_hqaudio',
|
|
|
|
|
'name' => 'HQ Audio',
|
|
|
|
|
'image' => 'catsprites.png',
|
2025-05-18 16:28:40 +07:00
|
|
|
'sort_index' => 1,
|
2021-06-08 20:43:47 +08:00
|
|
|
'icon_id' => 1,
|
|
|
|
|
),
|
2025-05-18 16:28:40 +07:00
|
|
|
8 =>
|
2021-06-08 20:43:47 +08:00
|
|
|
array (
|
|
|
|
|
'id' => 409,
|
|
|
|
|
'mode' => 4,
|
|
|
|
|
'class_name' => 'c_misc',
|
|
|
|
|
'name' => 'Misc',
|
|
|
|
|
'image' => 'catsprites.png',
|
2025-05-18 16:28:40 +07:00
|
|
|
'sort_index' => 0,
|
2021-06-08 20:43:47 +08:00
|
|
|
'icon_id' => 1,
|
|
|
|
|
),
|
|
|
|
|
));
|
2025-05-18 16:28:40 +07:00
|
|
|
|
|
|
|
|
|
2021-06-08 20:43:47 +08:00
|
|
|
}
|
2025-05-18 16:28:40 +07:00
|
|
|
}
|