Files
mtdb_movie/common/Auth/SocialProfile.php
maher 703f50a09d
Some checks failed
Build / run (push) Has been cancelled
first commit
2025-10-29 11:42:25 +01:00

26 lines
472 B
PHP
Executable File

<?php namespace Common\Auth;
use App\Models\User;
use Illuminate\Database\Eloquent\Model;
class SocialProfile extends Model
{
protected $guarded = ['id'];
protected $casts = [
'access_expires_at' => 'datetime',
];
const MODEL_TYPE = 'social_profile';
public static function getModelTypeAttribute(): string
{
return self::MODEL_TYPE;
}
public function user()
{
return $this->belongsTo(User::class);
}
}