- 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:
2020-11-01 08:50:51 +00:00
parent be75e929f1
commit a7ab7f56ef
7 changed files with 235 additions and 166 deletions

23
app/Profile.php Normal file
View 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'
];
}