mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 10:07:12 +00:00
* Make writing relation count properties optional * Clean up description * Add test for write_model_magic_where=false * Add test for write_model_relation_count_properties=false
15 lines
354 B
PHP
15 lines
354 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\RelationCountProperties\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
class Post extends Model
|
|
{
|
|
public function relationHasMany(): HasMany
|
|
{
|
|
return $this->hasMany(Post::class);
|
|
}
|
|
}
|