22 lines
463 B
PHP
22 lines
463 B
PHP
<?php
|
|
|
|
namespace Krzysiej\RyobiCrawler\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
/**
|
|
* @property string $countryName
|
|
* @property string $productUrl
|
|
* @property string $cultureCode
|
|
*/
|
|
class Country extends Model
|
|
{
|
|
public $timestamps = true;
|
|
|
|
public function products(): HasMany
|
|
{
|
|
return $this->hasMany(Product::class);
|
|
}
|
|
} |