Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
workbiu-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
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
gxx
workbiu-admin
Commits
775a3c7b
Commit
775a3c7b
authored
Sep 27, 2017
by
gxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户查询
parent
ed97fd8a
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
427 additions
and
16 deletions
+427
-16
UserServiceContract.php
app/Contracts/UserServiceContract.php
+2
-0
UserController.php
app/Http/Controllers/UserController.php
+17
-3
UserService.php
app/Services/UserService.php
+12
-1
dashboard.blade.php
resources/views/admin/dashboard.blade.php
+3
-3
footer.blade.php
resources/views/admin/footer.blade.php
+0
-0
header.blade.php
resources/views/admin/header.blade.php
+0
-0
sidebar.blade.php
resources/views/admin/sidebar.blade.php
+3
-3
test.blade.php
resources/views/admin/test.blade.php
+1
-1
userinformation.blade.php
resources/views/admin/userinformation.blade.php
+378
-0
usertables.blade.php
resources/views/admin/usertables.blade.php
+3
-2
web.php
routes/web.php
+8
-3
No files found.
app/Contracts/UserServiceContract.php
View file @
775a3c7b
...
@@ -12,4 +12,6 @@ namespace App\Contracts;
...
@@ -12,4 +12,6 @@ namespace App\Contracts;
interface
UserServiceContract
interface
UserServiceContract
{
{
public
function
getAll
();
public
function
getAll
();
public
function
get
(
$id
);
}
}
\ No newline at end of file
app/Http/Controllers/
Test
Controller.php
→
app/Http/Controllers/
User
Controller.php
View file @
775a3c7b
...
@@ -6,7 +6,7 @@ use App\Contracts\UserServiceContract;
...
@@ -6,7 +6,7 @@ use App\Contracts\UserServiceContract;
use
App\Util\Message
;
use
App\Util\Message
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
class
Test
Controller
extends
Controller
class
User
Controller
extends
Controller
{
{
public
$mUser
;
public
$mUser
;
...
@@ -16,14 +16,28 @@ class TestController extends Controller
...
@@ -16,14 +16,28 @@ class TestController extends Controller
$this
->
mUser
=
$user
;
$this
->
mUser
=
$user
;
}
}
public
function
getAll
()
public
function
getAll
()
{
{
$result
=
$this
->
mUser
->
getAll
();
$result
=
$this
->
mUser
->
getAll
();
if
(
$result
){
if
(
$result
){
return
view
(
'
Admin-lte/UserT
ables'
,
compact
(
'result'
));
return
view
(
'
admin/usert
ables'
,
compact
(
'result'
));
}
else
{
}
else
{
return
Message
::
makeError
(
'获取失败'
);
return
Message
::
makeError
(
'获取失败'
);
}
}
}
}
public
function
get
(
$id
)
{
$result
=
$this
->
mUser
->
get
(
$id
);
if
(
$result
){
return
view
(
'admin/userinformation'
,
compact
(
'result'
));
}
else
{
return
Message
::
makeError
(
'无次用户'
);
}
}
}
}
app/Services/UserService.php
View file @
775a3c7b
...
@@ -16,10 +16,21 @@ class UserService implements UserServiceContract
...
@@ -16,10 +16,21 @@ class UserService implements UserServiceContract
{
{
public
function
getAll
()
public
function
getAll
()
{
{
$users
=
User
::
all
(
);
$users
=
User
::
paginate
(
2
);
if
(
count
(
$users
)
<
0
){
if
(
count
(
$users
)
<
0
){
return
null
;
return
null
;
}
}
return
$users
;
return
$users
;
}
}
public
function
get
(
$id
)
{
$user
=
User
::
find
(
$id
);
if
(
$user
==
null
){
return
null
;
}
else
{
return
$user
;
}
}
}
}
\ No newline at end of file
resources/views/
Admin-lte
/dashboard.blade.php
→
resources/views/
admin
/dashboard.blade.php
View file @
775a3c7b
...
@@ -56,12 +56,12 @@ desired effect
...
@@ -56,12 +56,12 @@ desired effect
<body
class=
"hold-transition skin-blue sidebar-mini"
>
<body
class=
"hold-transition skin-blue sidebar-mini"
>
<div
class=
"wrapper"
>
<div
class=
"wrapper"
>
@include('
Admin-lte
/header')
@include('
admin
/header')
{{--Sidebar--}}
{{--Sidebar--}}
@include('
Admin-lte
/sidebar')
@include('
admin
/sidebar')
<!-- Content Wrapper. Contains page content -->
<!-- Content Wrapper. Contains page content -->
...
@@ -89,7 +89,7 @@ desired effect
...
@@ -89,7 +89,7 @@ desired effect
<!-- /.content-wrapper -->
<!-- /.content-wrapper -->
@include('
Admin-lte
/footer')
@include('
admin
/footer')
<!-- Control Sidebar -->
<!-- Control Sidebar -->
...
...
resources/views/
Admin-lte
/footer.blade.php
→
resources/views/
admin
/footer.blade.php
View file @
775a3c7b
File moved
resources/views/
Admin-lte
/header.blade.php
→
resources/views/
admin
/header.blade.php
View file @
775a3c7b
File moved
resources/views/
Admin-lte
/sidebar.blade.php
→
resources/views/
admin
/sidebar.blade.php
View file @
775a3c7b
...
@@ -34,16 +34,16 @@
...
@@ -34,16 +34,16 @@
<ul
class=
"sidebar-menu"
>
<ul
class=
"sidebar-menu"
>
<li
class=
"header"
>
HEADER
</li>
<li
class=
"header"
>
HEADER
</li>
<!-- Optionally, you can add icons to the links -->
<!-- Optionally, you can add icons to the links -->
<li
class=
"active"
><a
href=
"#"
><i
class=
"fa fa-link"
></i>
<span>
用户列表
</span></a></li>
<li
class=
"active"
><a
href=
"#"
><i
class=
"fa fa-link"
></i>
<span>
admin-index
</span></a></li>
<li
class=
"treeview"
>
<li
class=
"treeview"
>
<a
href=
"#"
><i
class=
"fa fa-link"
></i>
<span>
Multilevel
</span>
<a
href=
"#"
><i
class=
"fa fa-link"
></i>
<span>
用户管理
</span>
<span
class=
"pull-right-container"
>
<span
class=
"pull-right-container"
>
<i
class=
"fa fa-angle-left pull-right"
></i>
<i
class=
"fa fa-angle-left pull-right"
></i>
</span>
</span>
</a>
</a>
<ul
class=
"treeview-menu"
>
<ul
class=
"treeview-menu"
>
<li><a
href=
"
#"
>
Link in level 2
</a></li>
<li><a
href=
"
{{url('user/getAll')}}"
>
用户列表
</a></li>
<li><a
href=
"#"
>
Link in level 2
</a></li>
<li><a
href=
"#"
>
Link in level 2
</a></li>
</ul>
</ul>
</li>
</li>
...
...
resources/views/
Admin-lte
/test.blade.php
→
resources/views/
admin
/test.blade.php
View file @
775a3c7b
@
extends
(
'
Admin-lte
/dashboard'
)
@
extends
(
'
admin
/dashboard'
)
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
'row'
>
<
div
class
=
'row'
>
<
div
class
=
'col-md-6'
>
<
div
class
=
'col-md-6'
>
...
...
resources/views/admin/userinformation.blade.php
0 → 100644
View file @
775a3c7b
@
extends
(
'admin/dashboard'
)
@
section
(
'content'
)
<
section
class
=
"content-header"
>
<
h1
>
User
Profile
</
h1
>
<
ol
class
=
"breadcrumb"
>
<
li
><
a
href
=
"#"
><
i
class
=
"fa fa-dashboard"
></
i
>
Home
</
a
></
li
>
<
li
><
a
href
=
"#"
>
Examples
</
a
></
li
>
<
li
class
=
"active"
>
User
profile
</
li
>
</
ol
>
</
section
>
<!--
Main
content
-->
<
section
class
=
"content"
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-3"
>
<!--
Profile
Image
-->
<
div
class
=
"box box-primary"
>
<
div
class
=
"box-body box-profile"
>
<
img
class
=
"profile-user-img img-responsive img-circle"
src
=
"
{
{asset('/bower_components/AdminLTE/dist/img/user4-128x128.jpg')}
}
"
alt
=
"User profile picture"
>
<
h3
class
=
"profile-username text-center"
>
{{
$result
[
'user_name'
]}}
</
h3
>
<
p
class
=
"text-muted text-center"
>
Software
Engineer
</
p
>
<
ul
class
=
"list-group list-group-unbordered"
>
<
li
class
=
"list-group-item"
>
<
b
>
真实姓名
</
b
>
<
a
class
=
"pull-right"
>
{{
$result
[
'real_name'
]}}
</
a
>
</
li
>
<
li
class
=
"list-group-item"
>
<
b
>
性别
</
b
>
<
a
class
=
"pull-right"
>
{{
$result
[
'gender'
]
==
0
?
'男'
:
'女'
}}
</
a
>
</
li
>
<
li
class
=
"list-group-item"
>
<
b
>
邮箱
</
b
>
<
a
class
=
"pull-right"
>
{{
$result
[
'email'
]
==
''
?
'没有'
:
$result
[
'email'
]}}
</
a
>
</
li
>
</
ul
>
<
a
href
=
"#"
class
=
"btn btn-primary btn-block"
><
b
>
关注
</
b
></
a
>
</
div
>
<!--
/.
box
-
body
-->
</
div
>
<!--
/.
box
-->
<!--
About
Me
Box
-->
<
div
class
=
"box box-primary"
>
<
div
class
=
"box-header with-border"
>
<
h3
class
=
"box-title"
>
About
Me
</
h3
>
</
div
>
<!--
/.
box
-
header
-->
<
div
class
=
"box-body"
>
<
strong
><
i
class
=
"fa fa-book margin-r-5"
></
i
>
Education
</
strong
>
<
p
class
=
"text-muted"
>
B
.
S
.
in
Computer
Science
from
the
University
of
Tennessee
at
Knoxville
</
p
>
<
hr
>
<
strong
><
i
class
=
"fa fa-map-marker margin-r-5"
></
i
>
Location
</
strong
>
<
p
class
=
"text-muted"
>
Malibu
,
California
</
p
>
<
hr
>
<
strong
><
i
class
=
"fa fa-pencil margin-r-5"
></
i
>
Skills
</
strong
>
<
p
>
<
span
class
=
"label label-danger"
>
UI
Design
</
span
>
<
span
class
=
"label label-success"
>
Coding
</
span
>
<
span
class
=
"label label-info"
>
Javascript
</
span
>
<
span
class
=
"label label-warning"
>
PHP
</
span
>
<
span
class
=
"label label-primary"
>
Node
.
js
</
span
>
</
p
>
<
hr
>
<
strong
><
i
class
=
"fa fa-file-text-o margin-r-5"
></
i
>
Notes
</
strong
>
<
p
>
Lorem
ipsum
dolor
sit
amet
,
consectetur
adipiscing
elit
.
Etiam
fermentum
enim
neque
.</
p
>
</
div
>
<!--
/.
box
-
body
-->
</
div
>
<!--
/.
box
-->
</
div
>
<!--
/.
col
-->
<
div
class
=
"col-md-9"
>
<
div
class
=
"nav-tabs-custom"
>
<
ul
class
=
"nav nav-tabs"
>
<
li
class
=
"active"
><
a
href
=
"#activity"
data
-
toggle
=
"tab"
>
Activity
</
a
></
li
>
<
li
><
a
href
=
"#timeline"
data
-
toggle
=
"tab"
>
Timeline
</
a
></
li
>
<
li
><
a
href
=
"#settings"
data
-
toggle
=
"tab"
>
Settings
</
a
></
li
>
</
ul
>
<
div
class
=
"tab-content"
>
<
div
class
=
"active tab-pane"
id
=
"activity"
>
<!--
Post
-->
<
div
class
=
"post"
>
<
div
class
=
"user-block"
>
<
img
class
=
"img-circle img-bordered-sm"
src
=
"../../dist/img/user1-128x128.jpg"
alt
=
"user image"
>
<
span
class
=
"username"
>
<
a
href
=
"#"
>
Jonathan
Burke
Jr
.</
a
>
<
a
href
=
"#"
class
=
"pull-right btn-box-tool"
><
i
class
=
"fa fa-times"
></
i
></
a
>
</
span
>
<
span
class
=
"description"
>
Shared
publicly
-
7
:
30
PM
today
</
span
>
</
div
>
<!--
/.
user
-
block
-->
<
p
>
Lorem
ipsum
represents
a
long
-
held
tradition
for
designers
,
typographers
and
the
like
.
Some
people
hate
it
and
argue
for
its
demise
,
but
others
ignore
the
hate
as
they
create
awesome
tools
to
help
create
filler
text
for
everyone
from
bacon
lovers
to
Charlie
Sheen
fans
.
</
p
>
<
ul
class
=
"list-inline"
>
<
li
><
a
href
=
"#"
class
=
"link-black text-sm"
><
i
class
=
"fa fa-share margin-r-5"
></
i
>
Share
</
a
></
li
>
<
li
><
a
href
=
"#"
class
=
"link-black text-sm"
><
i
class
=
"fa fa-thumbs-o-up margin-r-5"
></
i
>
Like
</
a
>
</
li
>
<
li
class
=
"pull-right"
>
<
a
href
=
"#"
class
=
"link-black text-sm"
><
i
class
=
"fa fa-comments-o margin-r-5"
></
i
>
Comments
(
5
)
</
a
></
li
>
</
ul
>
<
input
class
=
"form-control input-sm"
type
=
"text"
placeholder
=
"Type a comment"
>
</
div
>
<!--
/.
post
-->
<!--
Post
-->
<
div
class
=
"post clearfix"
>
<
div
class
=
"user-block"
>
<
img
class
=
"img-circle img-bordered-sm"
src
=
"../../dist/img/user7-128x128.jpg"
alt
=
"User Image"
>
<
span
class
=
"username"
>
<
a
href
=
"#"
>
Sarah
Ross
</
a
>
<
a
href
=
"#"
class
=
"pull-right btn-box-tool"
><
i
class
=
"fa fa-times"
></
i
></
a
>
</
span
>
<
span
class
=
"description"
>
Sent
you
a
message
-
3
days
ago
</
span
>
</
div
>
<!--
/.
user
-
block
-->
<
p
>
Lorem
ipsum
represents
a
long
-
held
tradition
for
designers
,
typographers
and
the
like
.
Some
people
hate
it
and
argue
for
its
demise
,
but
others
ignore
the
hate
as
they
create
awesome
tools
to
help
create
filler
text
for
everyone
from
bacon
lovers
to
Charlie
Sheen
fans
.
</
p
>
<
form
class
=
"form-horizontal"
>
<
div
class
=
"form-group margin-bottom-none"
>
<
div
class
=
"col-sm-9"
>
<
input
class
=
"form-control input-sm"
placeholder
=
"Response"
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
button
type
=
"submit"
class
=
"btn btn-danger pull-right btn-block btn-sm"
>
Send
</
button
>
</
div
>
</
div
>
</
form
>
</
div
>
<!--
/.
post
-->
<!--
Post
-->
<
div
class
=
"post"
>
<
div
class
=
"user-block"
>
<
img
class
=
"img-circle img-bordered-sm"
src
=
"../../dist/img/user6-128x128.jpg"
alt
=
"User Image"
>
<
span
class
=
"username"
>
<
a
href
=
"#"
>
Adam
Jones
</
a
>
<
a
href
=
"#"
class
=
"pull-right btn-box-tool"
><
i
class
=
"fa fa-times"
></
i
></
a
>
</
span
>
<
span
class
=
"description"
>
Posted
5
photos
-
5
days
ago
</
span
>
</
div
>
<!--
/.
user
-
block
-->
<
div
class
=
"row margin-bottom"
>
<
div
class
=
"col-sm-6"
>
<
img
class
=
"img-responsive"
src
=
"../../dist/img/photo1.png"
alt
=
"Photo"
>
</
div
>
<!--
/.
col
-->
<
div
class
=
"col-sm-6"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-6"
>
<
img
class
=
"img-responsive"
src
=
"../../dist/img/photo2.png"
alt
=
"Photo"
>
<
br
>
<
img
class
=
"img-responsive"
src
=
"../../dist/img/photo3.jpg"
alt
=
"Photo"
>
</
div
>
<!--
/.
col
-->
<
div
class
=
"col-sm-6"
>
<
img
class
=
"img-responsive"
src
=
"../../dist/img/photo4.jpg"
alt
=
"Photo"
>
<
br
>
<
img
class
=
"img-responsive"
src
=
"../../dist/img/photo1.png"
alt
=
"Photo"
>
</
div
>
<!--
/.
col
-->
</
div
>
<!--
/.
row
-->
</
div
>
<!--
/.
col
-->
</
div
>
<!--
/.
row
-->
<
ul
class
=
"list-inline"
>
<
li
><
a
href
=
"#"
class
=
"link-black text-sm"
><
i
class
=
"fa fa-share margin-r-5"
></
i
>
Share
</
a
></
li
>
<
li
><
a
href
=
"#"
class
=
"link-black text-sm"
><
i
class
=
"fa fa-thumbs-o-up margin-r-5"
></
i
>
Like
</
a
>
</
li
>
<
li
class
=
"pull-right"
>
<
a
href
=
"#"
class
=
"link-black text-sm"
><
i
class
=
"fa fa-comments-o margin-r-5"
></
i
>
Comments
(
5
)
</
a
></
li
>
</
ul
>
<
input
class
=
"form-control input-sm"
type
=
"text"
placeholder
=
"Type a comment"
>
</
div
>
<!--
/.
post
-->
</
div
>
<!--
/.
tab
-
pane
-->
<
div
class
=
"tab-pane"
id
=
"timeline"
>
<!--
The
timeline
-->
<
ul
class
=
"timeline timeline-inverse"
>
<!--
timeline
time
label
-->
<
li
class
=
"time-label"
>
<
span
class
=
"bg-red"
>
10
Feb
.
2014
</
span
>
</
li
>
<!--
/.
timeline
-
label
-->
<!--
timeline
item
-->
<
li
>
<
i
class
=
"fa fa-envelope bg-blue"
></
i
>
<
div
class
=
"timeline-item"
>
<
span
class
=
"time"
><
i
class
=
"fa fa-clock-o"
></
i
>
12
:
05
</
span
>
<
h3
class
=
"timeline-header"
><
a
href
=
"#"
>
Support
Team
</
a
>
sent
you
an
email
</
h3
>
<
div
class
=
"timeline-body"
>
Etsy
doostang
zoodles
disqus
groupon
greplin
oooj
voxy
zoodles
,
weebly
ning
heekya
handango
imeem
plugg
dopplr
jibjab
,
movity
jajah
plickers
sifteo
edmodo
ifttt
zimbra
.
Babblely
odeo
kaboodle
quora
plaxo
ideeli
hulu
weebly
balihoo
...
</
div
>
<
div
class
=
"timeline-footer"
>
<
a
class
=
"btn btn-primary btn-xs"
>
Read
more
</
a
>
<
a
class
=
"btn btn-danger btn-xs"
>
Delete
</
a
>
</
div
>
</
div
>
</
li
>
<!--
END
timeline
item
-->
<!--
timeline
item
-->
<
li
>
<
i
class
=
"fa fa-user bg-aqua"
></
i
>
<
div
class
=
"timeline-item"
>
<
span
class
=
"time"
><
i
class
=
"fa fa-clock-o"
></
i
>
5
mins
ago
</
span
>
<
h3
class
=
"timeline-header no-border"
><
a
href
=
"#"
>
Sarah
Young
</
a
>
accepted
your
friend
request
</
h3
>
</
div
>
</
li
>
<!--
END
timeline
item
-->
<!--
timeline
item
-->
<
li
>
<
i
class
=
"fa fa-comments bg-yellow"
></
i
>
<
div
class
=
"timeline-item"
>
<
span
class
=
"time"
><
i
class
=
"fa fa-clock-o"
></
i
>
27
mins
ago
</
span
>
<
h3
class
=
"timeline-header"
><
a
href
=
"#"
>
Jay
White
</
a
>
commented
on
your
post
</
h3
>
<
div
class
=
"timeline-body"
>
Take
me
to
your
leader
!
Switzerland
is
small
and
neutral
!
We
are
more
like
Germany
,
ambitious
and
misunderstood
!
</
div
>
<
div
class
=
"timeline-footer"
>
<
a
class
=
"btn btn-warning btn-flat btn-xs"
>
View
comment
</
a
>
</
div
>
</
div
>
</
li
>
<!--
END
timeline
item
-->
<!--
timeline
time
label
-->
<
li
class
=
"time-label"
>
<
span
class
=
"bg-green"
>
3
Jan
.
2014
</
span
>
</
li
>
<!--
/.
timeline
-
label
-->
<!--
timeline
item
-->
<
li
>
<
i
class
=
"fa fa-camera bg-purple"
></
i
>
<
div
class
=
"timeline-item"
>
<
span
class
=
"time"
><
i
class
=
"fa fa-clock-o"
></
i
>
2
days
ago
</
span
>
<
h3
class
=
"timeline-header"
><
a
href
=
"#"
>
Mina
Lee
</
a
>
uploaded
new
photos
</
h3
>
<
div
class
=
"timeline-body"
>
<
img
src
=
"http://placehold.it/150x100"
alt
=
"..."
class
=
"margin"
>
<
img
src
=
"http://placehold.it/150x100"
alt
=
"..."
class
=
"margin"
>
<
img
src
=
"http://placehold.it/150x100"
alt
=
"..."
class
=
"margin"
>
<
img
src
=
"http://placehold.it/150x100"
alt
=
"..."
class
=
"margin"
>
</
div
>
</
div
>
</
li
>
<!--
END
timeline
item
-->
<
li
>
<
i
class
=
"fa fa-clock-o bg-gray"
></
i
>
</
li
>
</
ul
>
</
div
>
<!--
/.
tab
-
pane
-->
<
div
class
=
"tab-pane"
id
=
"settings"
>
<
form
class
=
"form-horizontal"
>
<
div
class
=
"form-group"
>
<
label
for
=
"inputName"
class
=
"col-sm-2 control-label"
>
Name
</
label
>
<
div
class
=
"col-sm-10"
>
<
input
type
=
"email"
class
=
"form-control"
id
=
"inputName"
placeholder
=
"Name"
>
</
div
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"inputEmail"
class
=
"col-sm-2 control-label"
>
Email
</
label
>
<
div
class
=
"col-sm-10"
>
<
input
type
=
"email"
class
=
"form-control"
id
=
"inputEmail"
placeholder
=
"Email"
>
</
div
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"inputName"
class
=
"col-sm-2 control-label"
>
Name
</
label
>
<
div
class
=
"col-sm-10"
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"inputName"
placeholder
=
"Name"
>
</
div
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"inputExperience"
class
=
"col-sm-2 control-label"
>
Experience
</
label
>
<
div
class
=
"col-sm-10"
>
<
textarea
class
=
"form-control"
id
=
"inputExperience"
placeholder
=
"Experience"
></
textarea
>
</
div
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"inputSkills"
class
=
"col-sm-2 control-label"
>
Skills
</
label
>
<
div
class
=
"col-sm-10"
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"inputSkills"
placeholder
=
"Skills"
>
</
div
>
</
div
>
<
div
class
=
"form-group"
>
<
div
class
=
"col-sm-offset-2 col-sm-10"
>
<
div
class
=
"checkbox"
>
<
label
>
<
input
type
=
"checkbox"
>
I
agree
to
the
<
a
href
=
"#"
>
terms
and
conditions
</
a
>
</
label
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"form-group"
>
<
div
class
=
"col-sm-offset-2 col-sm-10"
>
<
button
type
=
"submit"
class
=
"btn btn-danger"
>
Submit
</
button
>
</
div
>
</
div
>
</
form
>
</
div
>
<!--
/.
tab
-
pane
-->
</
div
>
<!--
/.
tab
-
content
-->
</
div
>
<!--
/.
nav
-
tabs
-
custom
-->
</
div
>
<!--
/.
col
-->
</
div
>
<!--
/.
row
-->
</
section
>
@
endsection
\ No newline at end of file
resources/views/
Admin-lte/UserT
ables.blade.php
→
resources/views/
admin/usert
ables.blade.php
View file @
775a3c7b
@
extends
(
'
Admin-lte
/dashboard'
)
@
extends
(
'
admin
/dashboard'
)
@
section
(
'content'
)
@
section
(
'content'
)
...
@@ -50,13 +50,14 @@
...
@@ -50,13 +50,14 @@
<
td
>
{{
$value
[
'gender'
]
==
0
?
'男'
:
'女'
}}
</
td
>
<
td
>
{{
$value
[
'gender'
]
==
0
?
'男'
:
'女'
}}
</
td
>
<
td
>
{{
$value
[
'eamil'
]}}
</
td
>
<
td
>
{{
$value
[
'eamil'
]}}
</
td
>
<
td
>
{{
$value
[
'status'
]}}
</
td
>
<
td
>
{{
$value
[
'status'
]}}
</
td
>
<
td
>
<
button
>
拉黑
</
button
></
td
>
<
td
>
<
a
href
=
"
{
{url('user/get')}}/{{$value['id']}
}
"
class
=
"btn btn-info"
>
查看详情
</
a
></
td
>
</
tr
>
</
tr
>
</
tbody
>
</
tbody
>
@
endforeach
@
endforeach
</
table
>
</
table
>
{{
$result
->
links
()
}}
</
div
>
</
div
>
<!--
/.
box
-
body
-->
<!--
/.
box
-
body
-->
</
div
>
</
div
>
...
...
routes/web.php
View file @
775a3c7b
...
@@ -36,13 +36,18 @@ Route::get('/home', 'HomeController@index')->name('home');
...
@@ -36,13 +36,18 @@ Route::get('/home', 'HomeController@index')->name('home');
// 获取所有用户
// 用户
Route
::
get
(
'getAll'
,
'TestController@getAll'
);
Route
::
group
([
'prefix'
=>
'user'
],
function
(){
Route
::
get
(
'getAll'
,
'UserController@getAll'
)
->
name
(
'user.getAll'
);
Route
::
get
(
'get/{id}'
,
'UserController@get'
)
->
name
(
'user.get'
);
});
Route
::
get
(
'table'
,
function
(){
Route
::
get
(
'table'
,
function
(){
return
view
(
'
Admin-lte/UserT
ables'
);
return
view
(
'
admin/usert
ables'
);
});
});
...
...
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