Initial commit
This commit is contained in:
236
database/seeders/PostsTableSeeder.php
Normal file
236
database/seeders/PostsTableSeeder.php
Normal file
@@ -0,0 +1,236 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class PostsTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('posts')->delete();
|
||||
|
||||
\DB::table('posts')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 13,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\Admin',
|
||||
'category_id' => 4,
|
||||
'created_at' => '2023-07-29 21:44:43',
|
||||
'updated_at' => '2025-06-25 15:04:55',
|
||||
'deleted_at' => NULL,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 14,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\User',
|
||||
'category_id' => 4,
|
||||
'created_at' => '2023-07-29 21:49:40',
|
||||
'updated_at' => '2023-07-29 21:49:40',
|
||||
'deleted_at' => NULL,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 15,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\User',
|
||||
'category_id' => 4,
|
||||
'created_at' => '2023-07-29 22:30:08',
|
||||
'updated_at' => '2025-06-25 15:43:04',
|
||||
'deleted_at' => '2025-06-25 15:43:04',
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 16,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\User',
|
||||
'category_id' => 2,
|
||||
'created_at' => '2023-07-29 23:00:21',
|
||||
'updated_at' => '2025-06-25 15:42:33',
|
||||
'deleted_at' => '2025-06-25 15:42:33',
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'id' => 17,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\User',
|
||||
'category_id' => 2,
|
||||
'created_at' => '2023-07-29 23:00:53',
|
||||
'updated_at' => '2025-06-25 15:42:33',
|
||||
'deleted_at' => '2025-06-25 15:42:33',
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'id' => 18,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\User',
|
||||
'category_id' => 5,
|
||||
'created_at' => '2023-08-04 14:09:47',
|
||||
'updated_at' => '2025-06-25 15:43:56',
|
||||
'deleted_at' => '2025-06-25 15:43:56',
|
||||
),
|
||||
6 =>
|
||||
array (
|
||||
'id' => 19,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\User',
|
||||
'category_id' => 6,
|
||||
'created_at' => '2023-08-04 14:42:31',
|
||||
'updated_at' => '2025-06-25 15:43:56',
|
||||
'deleted_at' => '2025-06-25 15:43:56',
|
||||
),
|
||||
7 =>
|
||||
array (
|
||||
'id' => 20,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\User',
|
||||
'category_id' => 7,
|
||||
'created_at' => '2023-08-04 16:23:26',
|
||||
'updated_at' => '2025-06-25 15:43:37',
|
||||
'deleted_at' => '2025-06-25 15:43:37',
|
||||
),
|
||||
8 =>
|
||||
array (
|
||||
'id' => 21,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\User',
|
||||
'category_id' => 2,
|
||||
'created_at' => '2023-08-04 16:24:25',
|
||||
'updated_at' => '2025-06-25 15:43:37',
|
||||
'deleted_at' => '2025-06-25 15:43:37',
|
||||
),
|
||||
9 =>
|
||||
array (
|
||||
'id' => 22,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\Admin',
|
||||
'category_id' => 1,
|
||||
'created_at' => '2025-06-25 12:49:47',
|
||||
'updated_at' => '2025-06-25 13:13:25',
|
||||
'deleted_at' => NULL,
|
||||
),
|
||||
10 =>
|
||||
array (
|
||||
'id' => 23,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\Admin',
|
||||
'category_id' => 3,
|
||||
'created_at' => '2025-06-25 14:01:42',
|
||||
'updated_at' => '2025-06-26 15:18:34',
|
||||
'deleted_at' => NULL,
|
||||
),
|
||||
11 =>
|
||||
array (
|
||||
'id' => 24,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\Admin',
|
||||
'category_id' => 2,
|
||||
'created_at' => '2025-06-25 14:25:59',
|
||||
'updated_at' => '2025-06-25 14:36:11',
|
||||
'deleted_at' => NULL,
|
||||
),
|
||||
12 =>
|
||||
array (
|
||||
'id' => 25,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\Admin',
|
||||
'category_id' => 1,
|
||||
'created_at' => '2025-06-26 11:57:05',
|
||||
'updated_at' => '2025-06-26 11:59:26',
|
||||
'deleted_at' => NULL,
|
||||
),
|
||||
13 =>
|
||||
array (
|
||||
'id' => 26,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\Admin',
|
||||
'category_id' => 1,
|
||||
'created_at' => '2025-06-26 12:13:14',
|
||||
'updated_at' => '2025-06-26 12:14:54',
|
||||
'deleted_at' => NULL,
|
||||
),
|
||||
14 =>
|
||||
array (
|
||||
'id' => 27,
|
||||
'postable_id' => 161,
|
||||
'postable_type' => 'App\\Models\\User',
|
||||
'category_id' => 89,
|
||||
'created_at' => '2025-06-27 10:20:42',
|
||||
'updated_at' => '2025-06-27 10:20:42',
|
||||
'deleted_at' => NULL,
|
||||
),
|
||||
15 =>
|
||||
array (
|
||||
'id' => 28,
|
||||
'postable_id' => 161,
|
||||
'postable_type' => 'App\\Models\\User',
|
||||
'category_id' => 90,
|
||||
'created_at' => '2025-06-27 10:29:12',
|
||||
'updated_at' => '2025-06-27 10:29:12',
|
||||
'deleted_at' => NULL,
|
||||
),
|
||||
16 =>
|
||||
array (
|
||||
'id' => 29,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\Admin',
|
||||
'category_id' => 3,
|
||||
'created_at' => '2025-06-27 11:14:22',
|
||||
'updated_at' => '2025-06-27 11:23:32',
|
||||
'deleted_at' => NULL,
|
||||
),
|
||||
17 =>
|
||||
array (
|
||||
'id' => 30,
|
||||
'postable_id' => 161,
|
||||
'postable_type' => 'App\\Models\\User',
|
||||
'category_id' => 100,
|
||||
'created_at' => '2025-06-27 12:42:54',
|
||||
'updated_at' => '2025-06-27 12:42:54',
|
||||
'deleted_at' => NULL,
|
||||
),
|
||||
18 =>
|
||||
array (
|
||||
'id' => 31,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\Admin',
|
||||
'category_id' => 100,
|
||||
'created_at' => '2025-06-27 13:01:41',
|
||||
'updated_at' => '2025-06-27 13:40:52',
|
||||
'deleted_at' => NULL,
|
||||
),
|
||||
19 =>
|
||||
array (
|
||||
'id' => 32,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\Admin',
|
||||
'category_id' => 102,
|
||||
'created_at' => '2025-06-27 15:19:57',
|
||||
'updated_at' => '2025-06-27 15:23:26',
|
||||
'deleted_at' => NULL,
|
||||
),
|
||||
20 =>
|
||||
array (
|
||||
'id' => 33,
|
||||
'postable_id' => 1,
|
||||
'postable_type' => 'App\\Models\\Admin',
|
||||
'category_id' => 104,
|
||||
'created_at' => '2025-06-27 15:46:03',
|
||||
'updated_at' => '2025-06-27 15:47:42',
|
||||
'deleted_at' => NULL,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user