Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pa21617d4ti07
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
rizky
pa21617d4ti07
Commits
fa48bf89
Commit
fa48bf89
authored
May 24, 2017
by
rizky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
routing, handler
parent
71ac3c12
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
69 additions
and
27 deletions
+69
-27
Handler.php
app/Exceptions/Handler.php
+7
-0
RegistrationController.php
app/Http/Controllers/RegistrationController.php
+1
-0
CustomerMiddleware.php
app/Http/Middleware/CustomerMiddleware.php
+1
-1
ManagerMiddleware.php
app/Http/Middleware/ManagerMiddleware.php
+1
-1
StaffMiddleware.php
app/Http/Middleware/StaffMiddleware.php
+1
-1
register.blade.php
resources/views/authentication/register.blade.php
+1
-1
index.blade.php
resources/views/customers/ticket/beli/index.blade.php
+2
-7
ticket_home.blade.php
resources/views/customers/ticket/ticket_home.blade.php
+2
-16
404.blade.php
resources/views/errors/404.blade.php
+53
-0
No files found.
app/Exceptions/Handler.php
View file @
fa48bf89
...
...
@@ -5,6 +5,7 @@ namespace App\Exceptions;
use
Exception
;
use
Illuminate\Auth\AuthenticationException
;
use
Illuminate\Foundation\Exceptions\Handler
as
ExceptionHandler
;
use
Symfony\Component\HttpKernel\Exception\NotFoundHttpException
;
class
Handler
extends
ExceptionHandler
{
...
...
@@ -44,6 +45,12 @@ class Handler extends ExceptionHandler
*/
public
function
render
(
$request
,
Exception
$exception
)
{
if
(
$exception
instanceof
NotFoundHttpException
)
{
return
response
()
->
view
(
'errors.404'
,
[],
404
);
}
return
parent
::
render
(
$request
,
$exception
);
}
...
...
app/Http/Controllers/RegistrationController.php
View file @
fa48bf89
...
...
@@ -20,6 +20,7 @@ class RegistrationController extends Controller
'first_name'
=>
'required|max:255'
,
'last_name'
=>
'required|max:255'
,
'password'
=>
'confirmed|required|min:6'
,
'password_confirmation'
=>
'confirmed|required|same:password'
]);
$user
=
Sentinel
::
registerAndActivate
(
$request
->
all
());
...
...
app/Http/Middleware/CustomerMiddleware.php
View file @
fa48bf89
...
...
@@ -19,6 +19,6 @@ class CustomerMiddleware
if
(
Sentinel
::
check
()
&&
Sentinel
::
getUser
()
->
roles
()
->
first
()
->
slug
==
'customer'
)
return
$next
(
$request
);
else
return
redirect
(
'/'
);
return
redirect
(
)
->
back
(
);
}
}
app/Http/Middleware/ManagerMiddleware.php
View file @
fa48bf89
...
...
@@ -19,6 +19,6 @@ class ManagerMiddleware
if
(
Sentinel
::
check
()
&&
Sentinel
::
getUser
()
->
roles
()
->
first
()
->
slug
==
'manager'
)
return
$next
(
$request
);
else
return
redirect
(
'/'
);
return
redirect
(
)
->
back
(
);
}
}
app/Http/Middleware/StaffMiddleware.php
View file @
fa48bf89
...
...
@@ -19,6 +19,6 @@ class StaffMiddleware
if
(
Sentinel
::
check
()
&&
Sentinel
::
getUser
()
->
roles
()
->
first
()
->
slug
==
'staff'
)
return
$next
(
$request
);
else
return
redirect
(
'/'
);
return
redirect
(
)
->
back
(
);
}
}
resources/views/authentication/register.blade.php
View file @
fa48bf89
...
...
@@ -46,7 +46,7 @@
<div class="
separator
">
<p class="
change_link
">Already a member ?
<a href="
{{
url
(
'/
register
'
)}}
" class="
to_register
"> Log in </a>
<a href="
{{
url
(
'/
login
'
)}}
" class="
to_register
"> Log in </a>
</p>
<div class="
clearfix
"></div>
...
...
resources/views/customers/ticket/beli/index.blade.php
View file @
fa48bf89
...
...
@@ -16,18 +16,13 @@
<div class="
x_panel
">
<div class="
x_title
">
<h2>Jumlah Pesanan</h2>
<ul class="
nav
navbar
-
right
panel_toolbox
">
<li><a class="
collapse
-
link
"><i class="
fa
fa
-
chevron
-
up
"></i></a>
</li>
<li class="
dropdown
">
<a href="
#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
</
li
>
</
ul
>
<div class="
clearfix
"></div>
</div>
<div class="
x_content
">
<form action="
{{
url
(
'/ticket/beli/'
)}}
" method="
post
">
{{ csrf_field() }}
<label class="
col
-
md
-
4
control
-
label
">User ID</label>
<input type="
text
" value="
{{
Sentinel
::
getUser
()
->
id
}}
" class="
form
-
control
" name="
user_id
" readonly>
<label class="
col
-
md
-
4
control
-
label
">Name</label>
...
...
resources/views/customers/ticket/ticket_home.blade.php
View file @
fa48bf89
...
...
@@ -33,14 +33,7 @@
<!-- price element -->
<div class="
col
-
md
-
4
col
-
sm
-
6
col
-
xs
-
12
" style="
align
-
content
:
center
">
<div class="
pricing
ui
-
ribbon
-
container
">
<div class="
ui
-
ribbon
-
wrapper
">
</div>
<div class="
title
">
</div>
<div class="
x_content
">
</div>
</div>
</div>
<!-- price element -->
...
...
@@ -80,14 +73,7 @@
<!-- price element -->
<div class="
col
-
md
-
4
col
-
sm
-
6
col
-
xs
-
12
" style="
align
-
content
:
center
">
<div class="
pricing
ui
-
ribbon
-
container
">
<div class="
ui
-
ribbon
-
wrapper
">
</div>
<div class="
title
">
</div>
<div class="
x_content
">
</div>
</div>
</div>
<!-- price element -->
...
...
resources/views/errors/404.blade.php
0 → 100644
View file @
fa48bf89
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<!-- Meta, title, CSS, favicons, etc. -->
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
TB Silalahi Center
</title>
<!-- Bootstrap -->
<link
href=
"{{asset('../vendors/bootstrap/dist/css/bootstrap.min.css')}}"
rel=
"stylesheet"
>
<!-- Font Awesome -->
<link
href=
"{{asset('../vendors/font-awesome/css/font-awesome.min.css')}}"
rel=
"stylesheet"
>
<!-- NProgress -->
<link
href=
"{{asset('../vendors/nprogress/nprogress.css')}}"
rel=
"stylesheet"
>
<!-- Custom Theme Style -->
<link
href=
"{{asset('../build/css/custom.min.css')}}"
rel=
"stylesheet"
>
</head>
<body
class=
"nav-md"
>
<div
class=
"container body"
>
<div
class=
"main_container"
>
<!-- page content -->
<div
class=
"col-md-12"
>
<div
class=
"col-middle"
>
<div
class=
"text-center text-center"
>
<h1
class=
"error-number"
>
404
</h1>
<h2>
Sorry but we couldn't find this page
</h2>
<p>
This page you are looking for does not exist
</p>
<h1>
Halaman tidak ditemukan
</h1>
</div>
</div>
</div>
<!-- /page content -->
</div>
</div>
<!-- jQuery -->
<script
src=
"{{asset('../vendors/jquery/dist/jquery.min.js')}}"
></script>
<!-- Bootstrap -->
<script
src=
"{{asset('../vendors/bootstrap/dist/js/bootstrap.min.js')}}"
></script>
<!-- FastClick -->
<script
src=
"{{asset('../vendors/fastclick/lib/fastclick.js')}}"
></script>
<!-- NProgress -->
<script
src=
"{{asset('../vendors/nprogress/nprogress.js')}}"
></script>
<!-- Custom Theme Scripts -->
<script
src=
"{{asset('../build/js/custom.min.js')}}"
></script>
</body>
</html>
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