@ -19,6 +19,7 @@ class CityResource extends JsonResource
'id' => $this->id,
'uuid' => $this->uuid,
'name' => $this->name,
'url' => $this->url,
];
}
@ -8,4 +8,10 @@ use Illuminate\Database\Eloquent\Model;
class City extends Model
{
use HasFactory;
protected $fillable = [
'uuid',
'name',
'url',
@ -15,6 +15,7 @@ return new class extends Migration
$table->id();
$table->string('uuid');
$table->string('name');
$table->string('url');
$table->timestamps();
});