diff --git a/app/Models/Barrio.php b/app/Models/Barrio.php index 9c48da6..d321a2f 100644 --- a/app/Models/Barrio.php +++ b/app/Models/Barrio.php @@ -13,7 +13,7 @@ class Barrio extends Model * @var array */ protected $fillable = [ - 'name', + 'nombre', ]; /** diff --git a/database/seeders/BarrioSeeder.php b/database/seeders/BarrioSeeder.php index 1d59a25..e1e99e5 100644 --- a/database/seeders/BarrioSeeder.php +++ b/database/seeders/BarrioSeeder.php @@ -17,11 +17,11 @@ class BarrioSeeder extends Seeder public function run(): void { $prueba_id = Region::create([ - 'name' => 'PRUEBA', + 'nombre' => 'PRUEBA', ])->id; Barrio::create([ - 'name'=>'PRUEBA','region_id'=>$prueba_id, 'created_at'=>Date::now() + 'nombre'=>'PRUEBA','region_id'=>$prueba_id, 'created_at'=>Date::now() ]); } }