for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Spatie\Translatable\HasTranslations;
class Region extends Model
{
use HasFactory;
use HasTranslations;
/**
* The attributes that aren't mass assignable.
*
* @var array
*/
protected $guarded = [];
* The attributes that are translatable.
public $translatable = ['name'];
* Returns the country of the region.
public function country()
return $this->belongsTo(Country::class);
}