Initialize routes, middleware and some basic controllers/view for further implementation.
35 lines
517 B
PHP
35 lines
517 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class User
|
|
*/
|
|
class User extends Model
|
|
{
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'email',
|
|
'username',
|
|
'password',
|
|
'remember_token',
|
|
'name',
|
|
'status'
|
|
];
|
|
|
|
protected $guarded = [];
|
|
|
|
/**
|
|
* The attributes excluded from the model's JSON form.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $hidden = [
|
|
'password', 'remember_token',
|
|
];
|
|
|
|
} |