mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
19 lines
476 B
PHP
19 lines
476 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Pivot\Models;
|
|
|
|
use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Pivot\Models\Pivots\CustomPivot;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ModelWithPivot extends Model
|
|
{
|
|
public function relationWithCustomPivot()
|
|
{
|
|
return $this->belongsToMany(ModelwithPivot::class)
|
|
->using(CustomPivot::class)
|
|
->as('customAccessor');
|
|
}
|
|
}
|