2024-03-02 11:21:04 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
use App\Profile;
|
|
|
|
|
|
|
|
class ProfileMigration extends Model
|
|
|
|
{
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
protected $guarded = [];
|
|
|
|
|
|
|
|
public function profile()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Profile::class, 'profile_id');
|
|
|
|
}
|
2024-03-05 07:29:37 +00:00
|
|
|
|
|
|
|
public function target()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Profile::class, 'target_profile_id');
|
|
|
|
}
|
2024-03-02 11:21:04 +00:00
|
|
|
}
|