squire
squire copied to clipboard
Error while following readme file
Describe the bug
-
Squire\Models\Airline::continent(): Return value must be of type Illuminate\Database\Eloquent\Relations\BelongsTo, Illuminate\Database\Eloquent\Relations\HasOneThrough returned2, 3, 4, 5.SQLSTATE[HY000]: General error: 1 no such table: countries
To reproduce
- Airline::with('continent')->first();
- Continent::with('regions')->first();
- Continent::with('timezones')->first();
- Region::with('continent')->first()
- Timezone::with('continent')->first()
Expected behavior No Error
Context
- Squire version: 3.4 (latest)
- Laravel version: 10.13.5
- Server OS: Ubuntu 22.04
- PHP version: 8.2.7
Additional details
I'm just checking out all the model with relations.. I install all of them (only english -en) and check base on readme file
All model have use Squire\Models\ModelName