\App\UtilRoutes

Summary

Methods
Properties
Constants
__construct()
routes()
getAdmin()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
permissionCollect()
sortByDesc()
formatRoutes()
formatRoutesChildren()
setAdmin()
$admin
N/A

Properties

$admin

$admin : 

Type

Methods

__construct()

__construct(\App\Models\Admin  $admin) 

Routes constructor.

Parameters

\App\Models\Admin $admin

routes()

routes() 

getAdmin()

getAdmin() : \App\Models\Admin

Returns

\App\Models\Admin

permissionCollect()

permissionCollect() 

sortByDesc()

sortByDesc(\Illuminate\Support\Collection  $permissions) 

Parameters

\Illuminate\Support\Collection $permissions

formatRoutes()

formatRoutes(\Illuminate\Support\Collection  $permissions) 

Parameters

\Illuminate\Support\Collection $permissions

formatRoutesChildren()

formatRoutesChildren(\Illuminate\Support\Collection  $permissions) 

Parameters

\Illuminate\Support\Collection $permissions

setAdmin()

setAdmin(\App\Models\Admin  $admin) : void

Parameters

\App\Models\Admin $admin