plugin
plugin copied to clipboard
[Bug]: Factory magic relationship methods require `$attributes` while its optional
Bug description
Based on the docs here the $attributes of the factory magic relationship methods is optional.
Plugin version
5.7.3.221
Operating system
MacOS
Steps to reproduce
- create new project with
laravel new projec-name - create additional model e.g.
Post - setup the relationship between
UserandPostasHasManyrelationship - generate helper code
- anywhere in the project write
User::factory()->hasPosts(5)->create(); - PHPStorm will ask you to pass
$attributestohasPostsfunction
Relevant log output
N/A
Fixed. Thanks.
Fixed in the 6.1 release. Thanks.