Nuevos cambios hechos de diseño
This commit is contained in:
19
desarrollo2/app/Models/Country.php
Normal file
19
desarrollo2/app/Models/Country.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Country extends Model
|
||||
{
|
||||
/**
|
||||
* Get the Zone that owns the Country
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
public function zone()
|
||||
{
|
||||
return $this->belongsTo(Zone::class);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user