Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
L
laravel_training
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 Tran Viet Anh
laravel_training
Commits
24adea40
Commit
24adea40
authored
Oct 31, 2022
by
TTS Tran Viet Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make migration
parent
674ab58f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
User.php
app/Models/User.php
+3
-6
2014_10_12_000000_create_users_table.php
database/migrations/2014_10_12_000000_create_users_table.php
+3
-1
No files found.
app/Models/User.php
View file @
24adea40
...
...
@@ -4,24 +4,21 @@
use
Illuminate\Contracts\Auth\MustVerifyEmail
;
use
Illuminate\Database\Eloquent\Factories\HasFactory
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
Illuminate\Foundation\Auth\User
as
Authenticatable
;
use
Illuminate\Notifications\Notifiable
;
use
Laravel\Sanctum\HasApiTokens
;
class
User
extends
Authenticatable
{
use
HasApiTokens
, HasFactory, Notifiable
;
use
HasApiTokens
, HasFactory, Notifiable
, SoftDeletes
;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected
$fillable
=
[
'name'
,
'email'
,
'password'
,
];
protected
$guard
=
[];
/**
* The attributes that should be hidden for serialization.
...
...
database/migrations/2014_10_12_000000_create_users_table.php
View file @
24adea40
...
...
@@ -15,8 +15,10 @@ public function up()
{
Schema
::
create
(
'users'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
string
(
'name'
);
$table
->
string
(
'
user
name'
);
$table
->
string
(
'email'
)
->
unique
();
$table
->
string
(
'phone'
);
$table
->
string
(
'address'
);
$table
->
timestamp
(
'email_verified_at'
)
->
nullable
();
$table
->
string
(
'password'
);
$table
->
rememberToken
();
...
...
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