Initial commit
This commit is contained in:
33
app/Models/Profile.php
Normal file
33
app/Models/Profile.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
// use Laravel\Jetstream\HasProfilePhoto;
|
||||
|
||||
|
||||
class Profile extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
//The attributes that are mass assignable.
|
||||
// protected $fillable = [
|
||||
// 'profile_photo_path',
|
||||
// ];
|
||||
|
||||
|
||||
// protected $appends = [
|
||||
// 'profile_photo_url',
|
||||
// ];
|
||||
|
||||
|
||||
|
||||
// Get all of the owning user
|
||||
// One-to-one
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user