presseportale/dev/Models/Country.php
Kevin Adametz 405df0a122
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
first commit
2025-10-20 17:53:02 +02:00

61 lines
1.6 KiB
PHP

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
/**
* Class Country
*
* @property int $id
* @property string $name
* @property Collection|Company[] $companies
* @property Collection|InvoiceBillingAddress[] $invoice_billing_addresses
* @property Collection|SfGuardUserProfile[] $sf_guard_user_profiles
* @property Collection|UserBillingAddress[] $user_billing_addresses
* @package App\Models
* @property-read int|null $companies_count
* @property-read int|null $invoice_billing_addresses_count
* @property-read int|null $sf_guard_user_profiles_count
* @property-read int|null $user_billing_addresses_count
* @method static \Illuminate\Database\Eloquent\Builder|Country newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Country newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Country query()
* @method static \Illuminate\Database\Eloquent\Builder|Country whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Country whereName($value)
* @mixin \Eloquent
*/
class Country extends Model
{
protected $table = 'country';
public $timestamps = false;
protected $fillable = [
'name'
];
public function companies()
{
return $this->hasMany(Company::class);
}
public function invoice_billing_addresses()
{
return $this->hasMany(InvoiceBillingAddress::class);
}
public function sf_guard_user_profiles()
{
return $this->hasMany(SfGuardUserProfile::class);
}
public function user_billing_addresses()
{
return $this->hasMany(UserBillingAddress::class);
}
}