mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
29 lines
503 B
PHP
29 lines
503 B
PHP
<?php
|
|
|
|
namespace App\Services\Facades;
|
|
|
|
use App\Services\OptionForm;
|
|
use Illuminate\Support\Facades\Facade;
|
|
|
|
class Option extends Facade
|
|
{
|
|
/**
|
|
* Get the registered name of the component.
|
|
*
|
|
* @return string
|
|
*/
|
|
protected static function getFacadeAccessor()
|
|
{
|
|
return 'options';
|
|
}
|
|
|
|
public static function form($id, $title, $callback)
|
|
{
|
|
$form = new OptionForm($id, $title);
|
|
|
|
call_user_func($callback, $form);
|
|
|
|
return $form;
|
|
}
|
|
}
|