first commit
This commit is contained in:
30
app/Models/IpNation.php
Normal file
30
app/Models/IpNation.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
|
||||
class IpNation extends BaseModel
|
||||
{
|
||||
/**
|
||||
* The database table used by the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'ip_nation';
|
||||
|
||||
|
||||
protected $guarded = [ ];
|
||||
|
||||
/**
|
||||
* The attributes excluded from the model's JSON form.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = [ ];
|
||||
|
||||
public function country()
|
||||
{
|
||||
return $this->hasOne('App\Models\IpNationCountries','code', 'country');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user