54 lines
1.6 KiB
PHP
54 lines
1.6 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Database\Seeders;
|
||
|
|
|
||
|
|
use Illuminate\Database\Seeder;
|
||
|
|
use Illuminate\Support\Facades\DB;
|
||
|
|
use Carbon\Carbon;
|
||
|
|
|
||
|
|
class CategorySeeder extends Seeder
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Run the database seeds.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public function run()
|
||
|
|
{
|
||
|
|
DB::table('categories')->insert([
|
||
|
|
[
|
||
|
|
'category_name' => 'High Yield Finance',
|
||
|
|
'status' => 1,
|
||
|
|
'created_by' => 1,
|
||
|
|
'modified_by' => 1,
|
||
|
|
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||
|
|
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
||
|
|
],
|
||
|
|
[
|
||
|
|
'category_name' => 'Fractional Real Estate',
|
||
|
|
'status' => 1,
|
||
|
|
'created_by' => 1,
|
||
|
|
'modified_by' => 1,
|
||
|
|
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||
|
|
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
||
|
|
],
|
||
|
|
[
|
||
|
|
'category_name' => 'Peer2Peer Lending',
|
||
|
|
'status' => 1,
|
||
|
|
'created_by' => 1,
|
||
|
|
'modified_by' => 1,
|
||
|
|
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||
|
|
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
||
|
|
],
|
||
|
|
[
|
||
|
|
'category_name' => 'AIF',
|
||
|
|
'status' => 1,
|
||
|
|
'created_by' => 1,
|
||
|
|
'modified_by' => 1,
|
||
|
|
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||
|
|
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
||
|
|
],
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|