Closed dalehurley closed 1 year ago
Missing
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
It's in the docs.
Ok. Feel free to ignore the issue but this is an error you get following the first getting started page. I am just thought that it is worth highlighting as it is likely to turn people off if they follow along and get an error within the first use.
Can you PR a fix to the docs then?
Missing
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany;
It's in the docs.
Thank you for this tip! I had the same error...
Package
filament/filament
Package Version
v3
Laravel Version
V10.17.0
Livewire Version
v3
PHP Version
PHP 8.2.8
Problem description
When using type hinted relationship like in the example Panel Builder Getting started you get an error:
Expected behavior
The correct BelongTo type detected
Steps to reproduce
Follow the example on https://filamentphp.com/docs/3.x/panels/getting-started
Reproduction repository
https://github.com/DaleMHurley/filament-error
Relevant log output