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