feat: add uploader
This commit is contained in:
20
modules/Common/Http/Controllers/OptionController.php
Normal file
20
modules/Common/Http/Controllers/OptionController.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Common\Http\Controllers;
|
||||
|
||||
use Exception;
|
||||
use Modules\Common\Repository\Options\Factory;
|
||||
|
||||
class OptionController
|
||||
{
|
||||
/**
|
||||
* @param $name
|
||||
* @param Factory $factory
|
||||
* @return array
|
||||
* @throws Exception
|
||||
*/
|
||||
public function index($name, Factory $factory): array
|
||||
{
|
||||
return $factory->make($name)->get();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user