feat: updates
This commit is contained in:
@@ -4,8 +4,14 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
||||
|
||||
class Sale extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
public function transactions(): MorphToMany
|
||||
{
|
||||
return $this->morphToMany(Transaction::class, 'transactionable');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user