mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 08:01:27 +00:00
57 lines
1.7 KiB
PHP
57 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class ContentTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Auto generated seed file.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
DB::table('content')->delete();
|
|
|
|
DB::table('content')->insert([
|
|
0 => [
|
|
'id' => 1,
|
|
'title' => 'Welcome to NNTmux.',
|
|
'url' => 'NULL',
|
|
'body' => '<p>Since NNTmux is a fork of newznab, the API is compatible with sonarr, sickbeard, couchpotato, etc...</p>',
|
|
'metadescription' => '""',
|
|
'metakeywords' => '""',
|
|
'contenttype' => 3,
|
|
'status' => 1,
|
|
'ordinal' => 0,
|
|
'role' => 0,
|
|
],
|
|
1 => [
|
|
'id' => 2,
|
|
'title' => 'example content',
|
|
'url' => '/great/seo/content/page/',
|
|
'body' => '<p>this is an example content page</p>',
|
|
'metadescription' => '""',
|
|
'metakeywords' => '""',
|
|
'contenttype' => 1,
|
|
'status' => 1,
|
|
'ordinal' => 1,
|
|
'role' => 0,
|
|
],
|
|
2 => [
|
|
'id' => 3,
|
|
'title' => 'another example',
|
|
'url' => '/another/great/seo/content/page/',
|
|
'body' => '<p>this is another example content page</p>',
|
|
'metadescription' => '""',
|
|
'metakeywords' => '""',
|
|
'contenttype' => 1,
|
|
'status' => 1,
|
|
'ordinal' => 0,
|
|
'role' => 0,
|
|
],
|
|
]);
|
|
}
|
|
}
|