squire icon indicating copy to clipboard operation
squire copied to clipboard

Error while following readme file

Open valpuia opened this issue 2 years ago • 0 comments

Describe the bug

  1. Squire\Models\Airline::continent(): Return value must be of type Illuminate\Database\Eloquent\Relations\BelongsTo, Illuminate\Database\Eloquent\Relations\HasOneThrough returned 2, 3, 4, 5. SQLSTATE[HY000]: General error: 1 no such table: countries

To reproduce

  1. Airline::with('continent')->first();
  2. Continent::with('regions')->first();
  3. Continent::with('timezones')->first();
  4. Region::with('continent')->first()
  5. 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

valpuia avatar Jun 28 '23 07:06 valpuia