Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pa2d4ti06
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Juliper
pa2d4ti06
Commits
1443391f
Commit
1443391f
authored
7 years ago
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add To show
parent
6e6e8e63
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
AdminController.php
app/Http/Controllers/AdminController.php
+2
-1
listOwner.blade.php
...s/views/vendor/adminlte/layouts/admin/listOwner.blade.php
+0
-0
sidebar.blade.php
.../views/vendor/adminlte/layouts/partials/sidebar.blade.php
+3
-1
message.php
.../admin-lte-template-laravel/resources/lang/en/message.php
+1
-1
No files found.
app/Http/Controllers/AdminController.php
View file @
1443391f
...
...
@@ -47,10 +47,11 @@ class AdminController extends Controller
$user
->
password
=
bcrypt
(
$data
[
'password'
]);
$user
->
role
=
'Owner'
;
dd
(
$user
);
//
dd($user);
$user
->
save
();
return
redirect
(
url
(
'admin/create'
))
->
with
(
'info'
,
'User berhasil ditambah '
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/admin/listOwner.blade.php
0 → 100644
View file @
1443391f
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/partials/sidebar.blade.php
View file @
1443391f
...
...
@@ -34,8 +34,10 @@
@if(Auth::user()->role =="Admin")
<li
class=
"header"
>
{{ trans('adminlte_lang::message.header') }}
</li>
<!-- Optionally, you can add icons to the links -->
<li
class=
"active"
><a
href=
"{{ url('home') }}"
><i
class=
'fa fa-home'
></i>
<span>
{{ trans('adminlte_lang::message.home') }}
</span></a></li>
<li><a
href=
"{{ url('home') }}"
><i
class=
'fa fa-home'
></i>
<span>
{{ trans('adminlte_lang::message.home') }}
</span></a></li>
<li><a
href=
"{{url('admin/create')}}"
><i
class=
'fa fa-plus'
></i>
<span>
{{ trans('adminlte_lang::message.addOwner') }}
</span></a></li>
<li><a
href=
"{{url('admin/create')}}"
><i
class=
'fa fa-list'
></i>
<span>
{{ trans('adminlte_lang::message.listOwner') }}
</span></a></li>
@elseif(Auth::user()->role=="Owner")
...
...
This diff is collapsed.
Click to expand it.
vendor/acacha/admin-lte-template-laravel/resources/lang/en/message.php
View file @
1443391f
...
...
@@ -132,7 +132,7 @@ return [
'homestay'
=>
'Homestay'
,
'role'
=>
'Role'
,
'username'
=>
'Username'
,
'
'
=>
'
'
,
'
listOwner'
=>
'List Owner
'
,
];
This diff is collapsed.
Click to expand it.
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