blessing-skin-server/app/Services/Facades/Option.php
2020-04-19 19:36:39 +08:00

24 lines
435 B
PHP

<?php
namespace App\Services\Facades;
use App\Services\OptionForm;
use Illuminate\Support\Facades\Facade;
class Option extends Facade
{
protected static function getFacadeAccessor()
{
return 'options';
}
public static function form(string $id, string $title, $callback): OptionForm
{
$form = new OptionForm($id, $title);
call_user_func($callback, $form);
return $form;
}
}