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

تعليقات

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

BlueHost Web Hosting Review: Secrets Revealed for Shared Hosting

How to Create Treeview with Bootstrap and jQuery

Submit Form using jQuery AJAX and PHP without Page Refresh