Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
634c96d8
Commit
634c96d8
authored
Nov 24, 2014
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename dashboard to home.
parent
7a7e366d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
18 deletions
+7
-18
app/Http/Controllers/Auth/AuthController.php
+2
-2
app/Http/Controllers/Auth/PasswordController.php
+1
-1
app/Http/Controllers/HomeController.php
+1
-1
app/Http/Middleware/RedirectIfAuthenticated.php
+1
-1
app/Http/routes.php
+1
-1
resources/views/welcome.blade.php
+1
-12
No files found.
app/Http/Controllers/Auth/AuthController.php
View file @
634c96d8
...
...
@@ -59,7 +59,7 @@ class AuthController extends Controller {
$this
->
auth
->
login
(
$user
);
return
redirect
(
'/
dashboard
'
);
return
redirect
(
'/
home
'
);
}
/**
...
...
@@ -88,7 +88,7 @@ class AuthController extends Controller {
if
(
$this
->
auth
->
attempt
(
$credentials
,
$request
->
has
(
'remember'
)))
{
return
redirect
(
'/
dashboard
'
);
return
redirect
(
'/
home
'
);
}
return
redirect
(
'/auth/login'
)
...
...
app/Http/Controllers/Auth/PasswordController.php
View file @
634c96d8
...
...
@@ -126,7 +126,7 @@ class PasswordController extends Controller {
{
$this
->
auth
->
login
(
User
::
where
(
'email'
,
$email
)
->
firstOrFail
());
return
redirect
(
'/
dashboard
'
);
return
redirect
(
'/
home
'
);
}
}
app/Http/Controllers/
Dashboard
Controller.php
→
app/Http/Controllers/
Home
Controller.php
View file @
634c96d8
<?php
namespace
App\Http\Controllers
;
class
Dashboard
Controller
extends
Controller
{
class
Home
Controller
extends
Controller
{
/**
* Create a new controller instance.
...
...
app/Http/Middleware/RedirectIfAuthenticated.php
View file @
634c96d8
...
...
@@ -36,7 +36,7 @@ class RedirectIfAuthenticated implements Middleware {
{
if
(
$this
->
auth
->
check
())
{
return
new
RedirectResponse
(
url
(
'/
dashboard
'
));
return
new
RedirectResponse
(
url
(
'/
home
'
));
}
return
$next
(
$request
);
...
...
app/Http/routes.php
View file @
634c96d8
...
...
@@ -13,7 +13,7 @@
$router
->
get
(
'/'
,
'WelcomeController@index'
);
$router
->
get
(
'/
dashboard'
,
'Dashboard
Controller@index'
);
$router
->
get
(
'/
home'
,
'Home
Controller@index'
);
/*
|--------------------------------------------------------------------------
...
...
resources/views/welcome.blade.php
View file @
634c96d8
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
="
row
">
<div class="
col
-
sm
-
10
col
-
sm
-
offset
-
1
">
<div class="
panel
panel
-
default
">
<div class="
panel
-
heading
">Home</div>
<div class="
panel
-
body
">
Welcome To Laravel.
</div>
</div>
</div>
</div>
Test
@
stop
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