blessing-skin-server/app/Services/Facades/Option.php

29 lines
503 B
PHP
Raw Normal View History

2016-08-24 22:43:04 +08:00
<?php
2016-08-28 22:15:09 +08:00
namespace App\Services\Facades;
2016-08-24 22:43:04 +08:00
2016-11-12 23:50:41 +08:00
use App\Services\OptionForm;
use Illuminate\Support\Facades\Facade;
2016-08-24 22:43:04 +08:00
2016-08-28 22:15:09 +08:00
class Option extends Facade
2016-08-24 22:43:04 +08:00
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'options';
2016-08-24 22:43:04 +08:00
}
2016-11-12 23:50:41 +08:00
public static function form($id, $title, $callback)
{
$form = new OptionForm($id, $title);
call_user_func($callback, $form);
return $form;
}
2016-08-24 22:43:04 +08:00
}