HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/bekkers/bekkersengineering.nl/app/KommaApp/Countries/Models/Country.php
<?php
namespace App\KommaApp\Countries\Models;

/**
 * App\KommaApp\Countries\Models\Country
 *
 * @author Komma <info@komma.pro>
 * @copyright (c) 2012-2016, Komma
 * @property-read \Illuminate\Database\Eloquent\Collection|\App\KommaApp\Languages\Models\Language[] $Language
 * @mixin \Eloquent
 * @property int $id
 * @property string $name
 * @property string $long_name
 * @property string|null $iso_2
 * @property string|null $iso_3
 * @property string|null $iso_number
 * @property string|null $calling_code
 * @property string|null $cctld
 * @method static \Illuminate\Database\Eloquent\Builder|\App\KommaApp\Countries\Models\Country whereCallingCode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\KommaApp\Countries\Models\Country whereCctld($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\KommaApp\Countries\Models\Country whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\KommaApp\Countries\Models\Country whereIso2($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\KommaApp\Countries\Models\Country whereIso3($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\KommaApp\Countries\Models\Country whereIsoNumber($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\KommaApp\Countries\Models\Country whereLongName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\KommaApp\Countries\Models\Country whereName($value)
 */

use App\KommaApp\Languages\Models\Language;
use Illuminate\Database\Eloquent\Model;

class Country extends Model
{
    protected $table = 'countries';

    protected $fillable = ['name', 'long_name', 'iso_2', 'iso_3', 'iso_number', 'calling_code', 'cctld'];

    public function Language()
    {
        return $this->hasMany(Language::class, 'iso_2');
    }
}