Skip to content

Unable to locate Squire source for [App\Models\Country] #16

@ShamarKellman

Description

@ShamarKellman

Describe the bug
Unable to find source when using extended Country model.

To reproduce

namespace App\Models;

use Squire\Models\Country as SquireCountry;

class Country extends SquireCountry
{
    public function users()
    {
        return $this->hasMany(User::class);
    }
}

Call

App\Models\Country::all();

Expected behavior
Expected to show all countries

Context

  • Squire version: 2.0.6
  • Laravel version: 8.33.1
  • Server OS: osx - laravel valet
  • PHP version: 8.0

Additional details
Add any other details about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions