Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
P
Project_Laravel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TTS Nguyen Huu Huan
Project_Laravel
Commits
7c74a81c
Commit
7c74a81c
authored
Sep 10, 2022
by
Le Dinh Trung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding routes
parent
961ddb96
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
2014_10_12_000000_create_users_table.php
database/migrations/2014_10_12_000000_create_users_table.php
+2
-1
web.php
routes/web.php
+9
-0
No files found.
database/migrations/2014_10_12_000000_create_users_table.php
View file @
7c74a81c
...
...
@@ -16,7 +16,8 @@ public function up()
Schema
::
create
(
'users'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
string
(
'name'
);
$table
->
string
(
'email'
)
->
unique
();
$table
->
string
(
'phone'
);
$table
->
string
(
'email'
)
->
nullable
();
$table
->
timestamp
(
'email_verified_at'
)
->
nullable
();
$table
->
string
(
'password'
);
$table
->
rememberToken
();
...
...
routes/web.php
View file @
7c74a81c
<?php
use
Illuminate\Support\Facades\Route
;
use
App\Http\Controllers\UserController
;
/*
|--------------------------------------------------------------------------
...
...
@@ -16,3 +17,11 @@
Route
::
get
(
'/'
,
function
()
{
return
view
(
'welcome'
);
});
Route
::
get
(
'/register'
,
function
()
{
return
view
(
'register'
);
});
Route
::
post
(
'/register'
,
[
UserController
::
class
,
'register'
]);
Route
::
post
(
'/login'
,
[
UserController
::
class
,
'login'
]);
Route
::
get
(
'/login'
,
function
()
{
return
view
(
'login'
);
});
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