database/seeders/PrefixSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $ins = [
            [
                'prefix_field' => 'Product',
                'prefix_value' => 'PD/2022/0000',
                'status' => 1,
                'company_id' => 1,
            ],
            [
                'prefix_field' => 'Lead',
                'prefix_value' => 'LD/2022/0000',
                'company_id' => 1,
                'status' => 1,
            ],
            [
                'prefix_field' => 'Invoice',
                'prefix_value' => 'INV/2022/0000',
                'company_id' => 1,
                'status' => 1,
            ]
        ];
        DB::table('prefix_settings')->insert($ins);
    }
public function run ( ) { $ ins = [ [ 'prefix_field' => 'Product' , 'prefix_value' => 'PD/2022/0000' , 'status' => 1 , 'company_id' => 1 , ] , [ 'prefix_field' => 'Lead' , 'prefix_value' => 'LD/2022/0000' , 'company_id' => 1 , 'status' => 1 , ] , [ 'prefix_field' => 'Invoice' , 'prefix_value' => 'INV/2022/0000' , 'company_id' => 1 , 'status' => 1 , ] ] ; DB :: table ( 'prefix_settings' ) -> insert ( $ ins ) ; }
Run the database seeds.
Run the database seeds .