Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TutorialServer
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
Anggiat Saud Parulian
TutorialServer
Commits
bf8c826a
Commit
bf8c826a
authored
May 26, 2017
by
Rinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
parent
0c354c2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
web.php
routes/web.php
+5
-4
No files found.
routes/web.php
View file @
bf8c826a
...
...
@@ -16,24 +16,25 @@ use App\Models\Jadwal;
| contains the "web" middleware group. Now create something great!
|
*/
Route
::
get
(
'/'
,
function
(){
return
view
(
'index'
);
return
view
(
'index'
);
})
->
middleware
(
'guest'
);
// Routing untuk authentifikasi
Route
::
group
([
'namespace'
=>
'auth'
],
function
(){
Route
::
post
(
'/login'
,
'LoginController@login'
)
->
name
(
'login'
);
Route
::
post
(
'/login'
,
'LoginController@login'
)
->
name
(
'login'
);
Route
::
get
(
'/logout'
,
function
(){
Auth
::
logout
();
return
redirect
(
'/'
);
})
->
name
(
'logout'
);
Route
::
ge
t
(
'/register'
,
'RegisterController@store'
);
Route
::
pos
t
(
'/register'
,
'RegisterController@store'
);
});
Route
::
group
([
'prefix'
=>
'admin'
,
'middleware'
=>
'admin'
],
function
()
{
Route
::
get
(
'/'
,
function
()
{
$this
->
data
[
'title'
]
=
'Dashboard'
;
$this
->
data
[
'title'
]
=
'Dashboard'
;
return
view
(
'admin.index'
,
$this
->
data
);
});
Route
::
resource
(
'admin'
,
'AdminController'
);
...
...
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