Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793816
2015_05_06_081119_create_users_table.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
647 B
Referenced Files
None
Subscribers
None
2015_05_06_081119_create_users_table.php
View Options
<?php
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
->
increments
(
'id'
);
$table
->
string
(
'username'
);
$table
->
string
(
'fullname'
);
$table
->
string
(
'email'
)->
unique
();
$table
->
string
(
'password'
,
60
);
$table
->
rememberToken
();
$table
->
timestamps
();
$table
->
softDeletes
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
drop
(
'users'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Feb 28, 22:47 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2437567
Default Alt Text
2015_05_06_081119_create_users_table.php (647 B)
Attached To
Mode
rGROVE Auth Grove
Attached
Detach File
Event Timeline
Log In to Comment