blessing-skin-server/app/Services/Facades/Option.php
2016-11-18 16:46:58 +08:00

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;
}
}