Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
hfpp2012
/
laravel-blog
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cd9b2dc6
authored
Sep 08, 2017
by
hfpp2012 yinsigan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Custom Registration
1 parent
e0507562
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
database/migrations/2014_10_12_000000_create_users_table.php
routes/web.php
database/migrations/2014_10_12_000000_create_users_table.php
View file @
cd9b2dc
...
...
@@ -15,6 +15,8 @@ class CreateUsersTable extends Migration
{
Schema
::
create
(
'users'
,
function
(
Blueprint
$table
)
{
$table
->
increments
(
'id'
);
$table
->
string
(
'username'
,
32
);
$table
->
date
(
'dob'
);
$table
->
string
(
'name'
);
$table
->
string
(
'email'
)
->
unique
();
$table
->
string
(
'password'
);
...
...
routes/web.php
View file @
cd9b2dc
...
...
@@ -13,8 +13,12 @@
Route
::
get
(
'/'
,
'PagesController@index'
);
Route
::
get
(
'profile'
,
'PagesController@profile'
);
Route
::
get
(
'settings'
,
'PagesController@settings'
);
Route
::
group
([
'middleware'
=>
[
'authenticated'
]],
function
()
{
Route
::
get
(
'users'
,
'UsersController@index'
);
Route
::
get
(
'profile'
,
'PagesController@profile'
);
Route
::
get
(
'settings'
,
'PagesController@settings'
);
});
Route
::
get
(
'blade'
,
'PagesController@blade'
);
...
...
@@ -32,7 +36,6 @@ Route::get('blade', 'PagesController@blade');
// return $users;
// });
Route
::
get
(
'users'
,
'UsersController@index'
)
->
middleware
(
'authenticated'
);
Route
::
get
(
'users/create'
,
'UsersController@create'
);
Route
::
post
(
'users'
,
'UsersController@store'
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment