Erster Stand
This commit is contained in:
@@ -13,52 +13,9 @@ class CategorySeeder extends Seeder
|
||||
public function run()
|
||||
{
|
||||
Category::create([
|
||||
'name' => 'Musicvideos',
|
||||
'shortname' => 'mv',
|
||||
'description' => 'WebMs containing music'
|
||||
'name' => 'random',
|
||||
'shortname' => 'random',
|
||||
'description' => 'random'
|
||||
]);
|
||||
|
||||
Category::create([
|
||||
'name' => 'Anime',
|
||||
'shortname' => 'anime',
|
||||
'description' => 'Everything from AMV to Hentai'
|
||||
]);
|
||||
|
||||
Category::create([
|
||||
'name' => 'Russia',
|
||||
'shortname' => 'russia',
|
||||
'description' => 'Сука Блять'
|
||||
]);
|
||||
|
||||
Category::create([
|
||||
'name' => 'Asians',
|
||||
'shortname' => 'asians',
|
||||
'description' => 'Mostly Korean and Japanese girls'
|
||||
]);
|
||||
|
||||
Category::create([
|
||||
'name' => 'Funny',
|
||||
'shortname' => 'funny',
|
||||
'description' => 'Supposed to be funny'
|
||||
]);
|
||||
|
||||
Category::create([
|
||||
'name' => 'Pr0n',
|
||||
'shortname' => 'pr0n',
|
||||
'description' => 'Crazy Japanese porn you will find my son'
|
||||
]);
|
||||
|
||||
Category::create([
|
||||
'name' => 'Politics',
|
||||
'shortname' => 'pol',
|
||||
'description' => 'Videos about faggots in suits'
|
||||
]);
|
||||
|
||||
Category::create([
|
||||
'name' => 'Misc',
|
||||
'shortname' => 'misc',
|
||||
'description' => 'Stuff that doesnt fit anywhere else'
|
||||
]);
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ class VideoTableSeeder extends Seeder
|
||||
return ($a < $b) ? -1 : 1;
|
||||
});
|
||||
|
||||
$category = \App\Models\Category::where('shortname', '=', 'misc')->first();
|
||||
$category = \App\Models\Category::where('shortname', '=', 'random')->first();
|
||||
$user = \App\Models\User::find(1);
|
||||
|
||||
foreach($videos as $video) {
|
||||
|
Reference in New Issue
Block a user