Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
d0d991a0
Commit
d0d991a0
authored
Oct 05, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing sidebar event classes
parent
7408dc71
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
40 deletions
+0
-40
RegisterSidebarMenuItemEvent.php
Events/RegisterSidebarMenuItemEvent.php
+0
-39
UserServiceProvider.php
Providers/UserServiceProvider.php
+0
-1
No files found.
Events/RegisterSidebarMenuItemEvent.php
deleted
100644 → 0
View file @
7408dc71
<?php
namespace
Modules\User\Events
;
use
Illuminate\Support\Collection
;
use
Illuminate\Support\Facades\Config
;
use
Illuminate\Support\Facades\Request
;
class
RegisterSidebarMenuItemEvent
{
public
$items
;
public
function
__construct
()
{
$this
->
items
=
new
Collection
;
$prefix
=
Config
::
get
(
'core::core.admin-prefix'
);
$this
->
items
->
put
(
'user'
,
Collection
::
make
([
[
'weight'
=>
'1'
,
'request'
=>
Request
::
is
(
"
{
$prefix
}
/users*"
)
or
Request
::
is
(
"
{
$prefix
}
/roles*"
),
'route'
=>
'#'
,
'icon-class'
=>
'fa fa-user'
,
'title'
=>
'Users & Roles'
,
],
[
'request'
=>
"
{
$prefix
}
/users*"
,
'route'
=>
'dashboard.user.index'
,
'icon-class'
=>
'fa fa-user'
,
'title'
=>
'Users'
,
],
[
'request'
=>
"
{
$prefix
}
/roles*"
,
'route'
=>
'dashboard.role.index'
,
'icon-class'
=>
'fa fa-flag-o'
,
'title'
=>
'Roles'
,
]
]));
}
}
\ No newline at end of file
Providers/UserServiceProvider.php
View file @
d0d991a0
...
...
@@ -79,6 +79,5 @@ class UserServiceProvider extends ServiceProvider
private
function
registerEvents
(
$events
)
{
$events
->
fire
(
'sidebar.menu.item_event'
,
new
RegisterSidebarMenuItemEvent
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment