Последняя версия с сервера прошлого разработчика
This commit is contained in:
19
app/Domain/Payments/Models/BankRequisites.php
Executable file
19
app/Domain/Payments/Models/BankRequisites.php
Executable file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace App\Domain\Payments\Models;
|
||||
|
||||
use App\Models\Model;
|
||||
use App\Models\User;
|
||||
|
||||
class BankRequisites extends Model
|
||||
{
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function requisites()
|
||||
{
|
||||
return $this->morphOne(Requisites::class, 'requisiteable');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user