feat: add uploader

This commit is contained in:
JaguarJack
2023-01-11 17:17:36 +08:00
parent 68d378b4ef
commit d823f74015
15 changed files with 457 additions and 9 deletions

View 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();
}
}