- Scopes: active(), byHub(), orderByIcao() — all using #[Scope] attribute
- Attach #[ObservedBy(AirportObserver::class)], remove imperative
Airport::observe() from ObserverServiceProviders
- Override resolveRouteBinding() for case-insensitive ICAO route binding
(URLs like /api/airports/kjfk now resolve correctly)
- Drop dead public static array $rules (Prettus validator hook,
never activated)
* wip
* refactor: phpstan level 1
* refactor: how the amount of people per fare is passed in the simbrief resource
* ci: add phpstan
* refactor: phpstan level 2
* fix: new avatar column name
* refactor: rollback avatar column name
* fix: type in FareService
* Elevation and Region
Add elevation and region data to model, which is already being returned during lookup.
Provide export/import for these new fields
Implement sortable columns to admin airports table.
* Improve import test (airport)
* Update airports > show.blade.php
Added elevation to the title
* Add ajax search to flight search in admin
* Make sure airports are populated in editable forms/field
* All airports loaded by ajax/updates to restrict to hubs
* Style CI fixes
* Add checking around migration failing
* Return Types and New Relationships
Added return types to current relationships
Added new relationships to Airport, Airline, Flight, Rank
* Update Aircraft.php
Fix for Znck BelongsToThrough return type check
* Update Aircraft.php
* StyleCi Fixes
* Update Flight.php
Switching from HasOne to BelongsTo for SimBrief test case
* Models and Migration
SoftDelete capability for models and database table updates
* Update 2023_06_24_072812_add_softdelete_fields.php
* Update 2023_06_24_072812_add_softdelete_fields.php
* StyleFix
* Frontend Pirep Controller
* User and Profile Controllers
* Airport, Dashboard, Profile controllers
* User Model
* User and Profile
* Flight Controller
* Notes for Airports
Adds capability of having notes/remarks for airports, includes
* New database field
* Airport Model change
* CSV Import/Export capability for notes
* Admin Airports list page change
* Admin Airports edit page change
* Default Template Airport show page change
* Update Airport Tests
* Add the new field to source csv
* Check if the import works
* Update AirportFactory.php
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
* Stopped inheritance errors popping up
* Added fillable fields
These would not save otherwise.
* Added country fillable field
Wouldn’t save when importing from phpvms classic.
* Added more to classic importer
Change arguments to ask in terminal
Fixed table_prefix names in Importer.php
Added the ability to import users from phpvms classic (tested on
simpilot’s 5.5.x) and when importing, it will then reset the user’s
password to a temporary hash and then email it to the user to then
change when they first log in.
* Changes to ImporterService