how to use config data in seeder

The use statement with non-compound name 'Config' has no effect. My code constants file:

return [
'sale_type' => '1',
'payment' => '2',
'bill_type' => '3',
'tax_fixation' => '4',
]

Seeder File:

$sale_type =[
['text' => 'Order Delivery Sale', 'type_id' => Config::get('sales.sale_type')],
['text' => 'Direct Sale', 'type_id' => Config::get('sales.sale_type')],
['text' => 'Advance Sale','type_id' => Config::get('sales.sale_type')],
['text' => 'Promotional Sale', 'type_id' => Config::get('sales.sale_type')],
['text' => 'Online Sale', 'type_id' => Config::get('sales.sale_type')]
];
DB::table('list_type_selection')->insert(
$sale_type
);



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/374mF7h
via IFTTT

تعليقات

المشاركات الشائعة من هذه المدونة

5 Free Black and White Social Media Icons Sets with CSS and HTML

How to Create Treeview with Bootstrap and jQuery

How to Change Apache and MySQL Port Number in XAMPP Localhost