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

تعليقات

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

How to Create Treeview with Bootstrap and jQuery

jQuery Datatables with PHP, MySQL and AJAX Example

How to Add Images to Dropdown List using jQuery