Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pa2_D3TI_20_03
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ratu Aryella Johana Sitorus
pa2_D3TI_20_03
Commits
8ac28aff
Commit
8ac28aff
authored
May 07, 2020
by
martinus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Membuat Controller untuk admin
parent
dc613d61
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
AdminController.php
app/Http/Controllers/AdminController.php
+18
-0
No files found.
app/Http/Controllers/AdminController.php
0 → 100644
View file @
8ac28aff
<?php
namespace
App\Http\Controllers
;
use
App\User
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\DB
;
class
AdminController
extends
Controller
{
//
public
function
index
(){
return
view
(
'admin'
);
}
public
function
show
(){
$user
=
User
::
paginate
(
1
);
return
view
(
'admin.lihatuser'
,[
'user'
=>
$user
]);
}
}
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