mirror of
https://github.com/ambieco/laravel-lift.git
synced 2026-04-28 21:34:57 +08:00
22 lines
442 B
PHP
22 lines
442 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Datasets;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use WendellAdriel\Lift\Attributes\PrimaryKey;
|
|
use WendellAdriel\Lift\Attributes\Relations\HasMany;
|
|
use WendellAdriel\Lift\Attributes\Relations\HasManyThrough;
|
|
use WendellAdriel\Lift\Lift;
|
|
|
|
#[HasMany(User::class)]
|
|
#[HasManyThrough(Post::class, User::class)]
|
|
class Country extends Model
|
|
{
|
|
use Lift;
|
|
|
|
#[PrimaryKey]
|
|
public int $id;
|
|
}
|