mirror of
https://github.com/kevin-DL/commander_league_api.git
synced 2026-01-11 18:44:32 +00:00
- Save the profile into the current request when the user is authenticated - Created the migration for the profiles table - Created the Profile model - Created route to retrieve the current user's profile
24 lines
393 B
PHP
24 lines
393 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class Profile
|
|
* @package App
|
|
*
|
|
* @property integer id
|
|
* @property string display_name
|
|
* @property string uid
|
|
* @property string picture
|
|
* @property \DateTime created_at
|
|
* @property \DateTime updated_at
|
|
*/
|
|
class Profile extends Model
|
|
{
|
|
protected $fillable = [
|
|
'display_name', 'uid', 'picture'
|
|
];
|
|
}
|