mirror of
https://github.com/kevin-DL/commander_league_api.git
synced 2026-03-10 21:14:37 +00:00
Profile
- 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
This commit is contained in:
23
app/Profile.php
Normal file
23
app/Profile.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user