PHP Class App\Http\Controllers\MenusController

Inheritance: extends Controller
显示文件 Open project: sroutier/laravel-5.1-enterprise-starter-kit

Public Methods

Method Description
destroy ( $id ) : Illuminate\Http\RedirectResponse | Redirector
getData ( Illuminate\Http\Request $request ) : mixed
getModalDelete ( integer $id ) : View Delete Confirm
index ( ) : Illuminate\View\View
save ( Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector

Private Methods

Method Description
menusOrmToJsTreeJson ( Illuminate\Database\Eloquent\Collection $menusCol ) : string

Method Details

destroy() public method

public destroy ( $id ) : Illuminate\Http\RedirectResponse | Redirector
$id
return Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector

getData() public method

public getData ( Illuminate\Http\Request $request ) : mixed
$request Illuminate\Http\Request
return mixed

getModalDelete() public method

Delete Confirm
public getModalDelete ( integer $id ) : View
$id integer
return View

index() public method

public index ( ) : Illuminate\View\View
return Illuminate\View\View

save() public method

public save ( Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector
$request Illuminate\Http\Request
return Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector