Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
5
59110440259
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
senior-prj-62
59110440259
Commits
93f8ea60
Commit
93f8ea60
authored
Dec 18, 2019
by
Piyaphorn Arphornsri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
87de637b
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
134 additions
and
218 deletions
+134
-218
app.php
b_beauty/config/app.php
+1
-1
2019_12_15_142918_create_users_table.php
...abase/New folder/2019_12_15_142918_create_users_table.php
+2
-2
2019_12_15_143242_create_typeusers_table.php
...e/New folder/2019_12_15_143242_create_typeusers_table.php
+0
-0
2019_12_15_144000_create_shop_table.php
...tabase/New folder/2019_12_15_144000_create_shop_table.php
+0
-0
2019_12_15_144034_create_typeshop_table.php
...se/New folder/2019_12_15_144034_create_typeshop_table.php
+0
-0
2019_12_15_144243_create_shop_img_table.php
...se/New folder/2019_12_15_144243_create_shop_img_table.php
+0
-0
2019_12_15_144331_create_promotion_table.php
...e/New folder/2019_12_15_144331_create_promotion_table.php
+0
-0
2019_12_15_144447_create_booking_table.php
...ase/New folder/2019_12_15_144447_create_booking_table.php
+0
-0
2019_12_15_144523_create_list_table.php
...tabase/New folder/2019_12_15_144523_create_list_table.php
+0
-0
2019_12_15_144629_create_reviews_table.php
...ase/New folder/2019_12_15_144629_create_reviews_table.php
+0
-0
2014_10_12_000000_create_users_table.php
...abase/migrations/2014_10_12_000000_create_users_table.php
+37
-0
2014_10_12_100000_create_password_resets_table.php
...ations/2014_10_12_100000_create_password_resets_table.php
+32
-0
login.blade.php
b_beauty/resources/views/auth/login.blade.php
+1
-0
register.blade.php
b_beauty/resources/views/auth/register.blade.php
+30
-0
home.blade.php
b_beauty/resources/views/home.blade.php
+15
-203
app.blade.php
b_beauty/resources/views/layouts/app.blade.php
+3
-2
rigister.blade.php
b_beauty/resources/views/rigister.blade.php
+9
-10
web.php
b_beauty/routes/web.php
+4
-0
No files found.
b_beauty/config/app.php
View file @
93f8ea60
...
...
@@ -13,7 +13,7 @@ return [
|
*/
'name'
=>
env
(
'APP_NAME'
,
'
Laravel
'
),
'name'
=>
env
(
'APP_NAME'
,
'
B Beauty
'
),
/*
|--------------------------------------------------------------------------
...
...
b_beauty/database/
migrations
/2019_12_15_142918_create_users_table.php
→
b_beauty/database/
New folder
/2019_12_15_142918_create_users_table.php
View file @
93f8ea60
...
...
@@ -18,8 +18,8 @@ class CreateUsersTable extends Migration
$table
->
string
(
'u_username'
,
50
);
$table
->
string
(
'u_password'
,
12
);
$table
->
string
(
'u_displayname'
,
50
);
$table
->
string
(
'u_email'
,
50
);
$table
->
Integer
(
'tu_id'
);
//
$table->string('u_email',50);
//
$table->Integer('tu_id');
$table
->
text
(
'u_pic'
);
});
...
...
b_beauty/database/
migrations
/2019_12_15_143242_create_typeusers_table.php
→
b_beauty/database/
New folder
/2019_12_15_143242_create_typeusers_table.php
View file @
93f8ea60
File moved
b_beauty/database/
migrations
/2019_12_15_144000_create_shop_table.php
→
b_beauty/database/
New folder
/2019_12_15_144000_create_shop_table.php
View file @
93f8ea60
File moved
b_beauty/database/
migrations
/2019_12_15_144034_create_typeshop_table.php
→
b_beauty/database/
New folder
/2019_12_15_144034_create_typeshop_table.php
View file @
93f8ea60
File moved
b_beauty/database/
migrations
/2019_12_15_144243_create_shop_img_table.php
→
b_beauty/database/
New folder
/2019_12_15_144243_create_shop_img_table.php
View file @
93f8ea60
File moved
b_beauty/database/
migrations
/2019_12_15_144331_create_promotion_table.php
→
b_beauty/database/
New folder
/2019_12_15_144331_create_promotion_table.php
View file @
93f8ea60
File moved
b_beauty/database/
migrations
/2019_12_15_144447_create_booking_table.php
→
b_beauty/database/
New folder
/2019_12_15_144447_create_booking_table.php
View file @
93f8ea60
File moved
b_beauty/database/
migrations
/2019_12_15_144523_create_list_table.php
→
b_beauty/database/
New folder
/2019_12_15_144523_create_list_table.php
View file @
93f8ea60
File moved
b_beauty/database/
migrations
/2019_12_15_144629_create_reviews_table.php
→
b_beauty/database/
New folder
/2019_12_15_144629_create_reviews_table.php
View file @
93f8ea60
File moved
b_beauty/database/migrations/2014_10_12_000000_create_users_table.php
0 → 100644
View file @
93f8ea60
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateUsersTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'users'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'name'
);
$table
->
string
(
'email'
)
->
unique
();
$table
->
timestamp
(
'email_verified_at'
)
->
nullable
();
$table
->
string
(
'password'
);
$table
->
string
(
'image'
)
->
nullable
();
$table
->
rememberToken
();
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'users'
);
}
}
b_beauty/database/migrations/2014_10_12_100000_create_password_resets_table.php
0 → 100644
View file @
93f8ea60
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreatePasswordResetsTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'password_resets'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'email'
)
->
index
();
$table
->
string
(
'token'
);
$table
->
timestamp
(
'created_at'
)
->
nullable
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'password_resets'
);
}
}
b_beauty/resources/views/auth/login.blade.php
View file @
93f8ea60
...
...
@@ -64,6 +64,7 @@
@endif
</div>
</div>
</form>
</div>
</div>
...
...
b_beauty/resources/views/auth/register.blade.php
View file @
93f8ea60
...
...
@@ -60,6 +60,36 @@
<input id="
password
-
confirm
" type="
password
" class="
form
-
control
" name="
password_confirmation
" required autocomplete="
new
-
password
">
</div>
</div>
<div class="
form
-
group
row
">
<label for="
password
" class="
col
-
md
-
4
col
-
form
-
label
text
-
md
-
right
">{{ __('Image') }}</label>
<div class="
col
-
md
-
6
">
<input id="
image
" type="
file
" class="
form
-
control
@
error
(
'image'
)
is
-
invalid
@
enderror
" name="
image
" value="
{{
old
(
'image'
)
}}
" required autocomplete="
image
" autofocus>
@error('Image')
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
<!--<div class="
form
-
group
row
">
<label for="
password
" class="
col
-
md
-
4
col
-
form
-
label
text
-
md
-
right
">{{ __('Type User') }}</label>
<div class="
col
-
md
-
6
">
<select id="
tu_id
" class="
form
-
control
@
error
(
'image'
)
is
-
invalid
@
enderror
" name="
image
" required autocomplete="
new
-
image
">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
@error('Type User')
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>-->
<div class="
form
-
group
row
mb
-
0
">
<div class="
col
-
md
-
6
offset
-
md
-
4
">
...
...
b_beauty/resources/views/home.blade.php
View file @
93f8ea60
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>
จองคิวร้านเสริมสวย กับ B Beauty
</title>
@
extends
(
'layouts.app'
)
<!-- Bootstrap -->
<!-- Latest compiled and minified CSS -->
<link
rel=
"stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
integrity=
"sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7"
crossorigin=
"anonymous"
>
@
section
(
'content'
)
<
div
class
="
container
">
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
md
-
8
">
<div class="
card
">
<div class="
card
-
header
">Dashboard</div>
<!-- Optional theme -->
<link
rel=
"stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css"
integrity=
"sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r"
crossorigin=
"anonymous"
>
<link
rel=
'stylesheet'
href=
'https://fonts.googleapis.com/css?family=Open+Sans:400,300'
>
<!-- Latest compiled and minified JavaScript -->
<script
src=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
integrity=
"sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS"
crossorigin=
"anonymous"
></script>
<style
type=
"text/css"
>
body
{
font-family
:
Arial
;
color
:
#333
;
font-size
:
0.95em
;
background
:
#696969
;
}
.form-head
{
color
:
#191919
;
font-weight
:
normal
;
font-weight
:
400
;
margin
:
0
;
text-align
:
center
;
font-size
:
1.8em
;
}
.error-message
{
padding
:
7px
10px
;
background
:
#fff1f2
;
border
:
#ffd5da
1px
solid
;
color
:
#d6001c
;
border-radius
:
4px
;
margin
:
30px
0px
10px
0px
;
}
.success-message
{
padding
:
7px
10px
;
background
:
#cae0c4
;
border
:
#c3d0b5
1px
solid
;
color
:
#027506
;
border-radius
:
4px
;
margin
:
30px
0px
10px
0px
;
}
.demo-table
{
background
:
#ffffff
;
border-spacing
:
initial
;
margin
:
15px
auto
;
word-break
:
break-word
;
table-layout
:
auto
;
line-height
:
1.8em
;
color
:
#333
;
border-radius
:
4px
;
padding
:
20px
40px
;
width
:
380px
;
border
:
1px
solid
;
border-color
:
#e5e6e9
#dfe0e4
#d0d1d5
;
}
.demo-table
.label
{
color
:
#888888
;
}
.demo-table
.field-column
{
padding
:
15px
0px
;
}
.demo-input-box
{
padding
:
13px
;
border
:
#CCC
1px
solid
;
border-radius
:
4px
;
width
:
100%
;
}
.btnRegister
{
padding
:
13px
;
background-color
:
#5d9cec
;
color
:
#f5f7fa
;
cursor
:
pointer
;
border-radius
:
4px
;
width
:
100%
;
border
:
#5791da
1px
solid
;
font-size
:
1.1em
;
}
.response-text
{
max-width
:
380px
;
font-size
:
1.5em
;
text-align
:
center
;
background
:
#fff3de
;
padding
:
42px
;
border-radius
:
3px
;
border
:
#f5e9d4
1px
solid
;
font-family
:
arial
;
line-height
:
34px
;
margin
:
15px
auto
;
}
.terms
{
margin-bottom
:
5px
;
}
</style>
</head>
<body>
<form
name=
"frmRegistration"
method=
"post"
action=
""
>
<div
class=
"demo-table"
>
<div
class=
"form-head"
>
ลงทะเบียน
</div>
<?php
if
(
!
empty
(
$errorMessage
)
&&
is_array
(
$errorMessage
))
{
?>
<div
class=
"error-message"
>
<?php
foreach
(
$errorMessage
as
$message
)
{
echo
$message
.
"<br/>"
;
}
?>
</div>
<?php
}
?>
<div
class=
"field-column"
>
<label>
ชื่อผู้ใช้งาน
</label>
<div>
<input
type=
"text"
class=
"demo-input-box"
name=
"userName"
value=
"
<?php
if
(
isset
(
$_POST
[
'userName'
]))
echo
$_POST
[
'userName'
];
?>
"
>
</div>
<div class="
card
-
body
">
@if (session('status'))
<div class="
alert
alert
-
success
" role="
alert
">
{{ session('status') }}
</div>
@endif
<div
class=
"field-column"
>
<label>
รหัสผ่าน
</label>
<div><input
type=
"password"
class=
"demo-input-box"
name=
"password"
value=
""
></div>
You are logged in!
</div>
<div
class=
"field-column"
>
<label>
ยืนยันรหัสผ่าน
</label>
<div>
<input
type=
"password"
class=
"demo-input-box"
name=
"confirm_password"
value=
""
>
</div>
</div>
<div
class=
"field-column"
>
<label>
ชื่อผู้ใช้งาน
</label>
<div>
<input
type=
"text"
class=
"demo-input-box"
name=
"firstName"
value=
"
<?php
if
(
isset
(
$_POST
[
'firstName'
]))
echo
$_POST
[
'firstName'
];
?>
"
>
</div>
</div>
<div
class=
"field-column"
>
<label>
Email
</label>
<div>
<input
type=
"text"
class=
"demo-input-box"
name=
"userEmail"
value=
"
<?php
if
(
isset
(
$_POST
[
'userEmail'
]))
echo
$_POST
[
'userEmail'
];
?>
"
>
</div>
</div>
<div
class=
"input-group mb-3"
>
<div
class=
"form-group"
>
<label
for=
"exampleFormControlFile1"
>
อัปโหลดรูปภาพ
</label>
<input
type=
"file"
class=
"form-control-file"
id=
"exampleFormControlFile1"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"exampleFormControlSelect1"
>
ประเภทผู้ใช้งาน
</label>
<select
class=
"form-control"
id=
"exampleFormControlSelect1"
>
<option>
1
</option>
<option>
2
</option>
<option>
3
</option>
</select>
</div>
<div
class=
"field-column"
>
<div
class=
"terms"
>
<input
type=
"checkbox"
name=
"terms"
>
I accept terms
and conditions
</div>
<div>
<input
type=
"submit"
name=
"register-user"
value=
"ลงทะเบียน"
class=
"btnRegister"
>
</div>
</div>
</div>
</form>
</body>
<!--start footer-->
<!--end footer-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"
></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
</body>
</html>
\ No newline at end of file
</div>
@endsection
b_beauty/resources/views/layouts/app.blade.php
View file @
93f8ea60
...
...
@@ -7,7 +7,7 @@
<!-- CSRF Token -->
<meta
name=
"csrf-token"
content=
"{{ csrf_token() }}"
>
<title>
{{ config('app.name', 'Laravel') }}
</title>
<title>
B Beauy
</title>
<!-- Scripts -->
<script
src=
"{{ asset('js/app.js') }}"
defer
></script>
...
...
@@ -18,13 +18,14 @@
<!-- Styles -->
<link
href=
"{{ asset('css/app.css') }}"
rel=
"stylesheet"
>
</head>
<body>
<div
id=
"app"
>
<nav
class=
"navbar navbar-expand-md navbar-light bg-white shadow-sm"
>
<div
class=
"container"
>
<a
class=
"navbar-brand"
href=
"{{ url('/') }}"
>
{{ config('app.name', 'Laravel') }}
B Beauy
<!--{{ config('app.name', 'B Beauy') }}-->
</a>
<button
class=
"navbar-toggler"
type=
"button"
data-toggle=
"collapse"
data-target=
"#navbarSupportedContent"
aria-controls=
"navbarSupportedContent"
aria-expanded=
"false"
aria-label=
"{{ __('Toggle navigation') }}"
>
<span
class=
"navbar-toggler-icon"
></span>
...
...
b_beauty/resources/views/rigister.blade.php
View file @
93f8ea60
...
...
@@ -134,15 +134,14 @@ body {
<label>
ชื่อผู้ใช้งาน
</label>
<div>
<input
type=
"text"
class=
"demo-input-box"
name=
"userName"
value=
"
<?php
if
(
isset
(
$_POST
[
'userName'
]))
echo
$_POST
[
'userName'
];
?>
"
>
name=
"u_username"
value=
""
>
</div>
</div>
<div
class=
"field-column"
>
<label>
รหัสผ่าน
</label>
<div><input
type=
"password"
class=
"demo-input-box"
name=
"password"
value=
""
></div>
name=
"
u_
password"
value=
""
></div>
</div>
<div
class=
"field-column"
>
<label>
ยืนยันรหัสผ่าน
</label>
...
...
@@ -155,17 +154,17 @@ body {
<label>
ชื่อผู้ใช้งาน
</label>
<div>
<input
type=
"text"
class=
"demo-input-box"
name=
"
firstN
ame"
value=
"
<?php
if
(
isset
(
$_POST
[
'firstName'
]))
echo
$_POST
[
'firstName'
];
?>
"
>
name=
"
u_displayn
ame"
value=
""
>
</div>
</div>
<div
class=
"field-column"
>
<label>
Email
</label>
<div>
<input
type=
"text"
class=
"demo-input-box"
name=
"userEmail"
value=
"
<?php
if
(
isset
(
$_POST
[
'userEmail'
]))
echo
$_POST
[
'userEmail'
];
?>
"
>
<input
type=
"text"
name=
"u_email"
class=
"demo-input-box"
value=
""
>
</div>
</div>
...
...
@@ -173,13 +172,13 @@ body {
<div
class=
"form-group"
>
<label
for=
"exampleFormControlFile1"
>
อัปโหลดรูปภาพ
</label>
<input
type=
"file"
class=
"form-control-file"
id=
"exampleFormControlFile1"
>
<input
type=
"file"
name=
"u_pic"
class=
"form-control-file"
id=
"exampleFormControlFile1"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"exampleFormControlSelect1"
>
ประเภทผู้ใช้งาน
</label>
<select
class=
"form-control"
id=
"
exampleFormControlSelect1
"
>
<select
class=
"form-control"
id=
"
tu_id
"
>
<option>
1
</option>
<option>
2
</option>
<option>
3
</option>
...
...
b_beauty/routes/web.php
View file @
93f8ea60
...
...
@@ -27,3 +27,7 @@ Route::get('/home', 'HomeController@index')->name('home');
Auth
::
routes
();
Route
::
get
(
'/home'
,
'HomeController@index'
)
->
name
(
'home'
);
Auth
::
routes
();
Route
::
get
(
'/home'
,
'HomeController@index'
)
->
name
(
'home'
);
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