Create invoices in XML Format.
This commit is contained in:
17
app/Http/Option.php
Normal file
17
app/Http/Option.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http;
|
||||
|
||||
class Option
|
||||
{
|
||||
public static function optionsAsObject()
|
||||
{
|
||||
$all_options = \App\Models\Option::all(['name', 'value']);
|
||||
$options = new \stdClass();
|
||||
foreach ($all_options as $option) {
|
||||
$key = $option->name;
|
||||
$options->$key = $option->value;
|
||||
}
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user