PHP Class Encore\Admin\Admin

ファイルを表示 Open project: z-song/laravel-admin Class Usage Examples

Public Properties

Property Type Description
$script array

Public Methods

Method Description
content ( Closure $callable ) : Content
controllerNamespace ( ) : string Get namespace of controllers.
form ( $model, Closure $callable ) : Form
getModel ( $model ) : mixed
grid ( $model, Closure $callable ) : Grid
menu ( ) : array Left sider-bar menu.
script ( string $script = '' ) : Illuminate\Contracts\View\Factory | Illuminate\View\View | void
title ( ) : Illuminate\Support\Facades\Config Get admin title.
tree ( $model ) : Tree Build a tree.
url ( $url ) : string Admin url.
user ( ) : mixed

Method Details

content() public method

public content ( Closure $callable ) : Content
$callable Closure
return Encore\Admin\Layout\Content

controllerNamespace() public method

Get namespace of controllers.
public controllerNamespace ( ) : string
return string

form() public method

public form ( $model, Closure $callable ) : Form
$model
$callable Closure
return Form

getModel() public method

public getModel ( $model ) : mixed
$model
return mixed

grid() public method

public grid ( $model, Closure $callable ) : Grid
$model
$callable Closure
return Grid

menu() public method

Left sider-bar menu.
public menu ( ) : array
return array

script() public static method

public static script ( string $script = '' ) : Illuminate\Contracts\View\Factory | Illuminate\View\View | void
$script string
return Illuminate\Contracts\View\Factory | Illuminate\View\View | void

title() public method

Get admin title.
public title ( ) : Illuminate\Support\Facades\Config
return Illuminate\Support\Facades\Config

tree() public method

Build a tree.
public tree ( $model ) : Tree
$model
return Tree

url() public static method

Admin url.
public static url ( $url ) : string
$url
return string

user() public method

public user ( ) : mixed
return mixed

Property Details

$script public_oe static_oe property

public static array $script
return array