You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I suggest adding a documentation block about available relations.
It took me a while to find them so having such information at the start will save some time and effort for library users.
I am talking about those two relations as they are not described anywhere:
$user = User::find(1);
$achievements = $user->achievements;
foreach ($achievements as $achievement) {
dump($achievement->details); <- this one
dump($achievement->achiever); <- and that one too
}
Also, PHPStorm IDE is not suggesting them until you scan the library models directory with the command (which may be worth mentioning):
Hello,
I suggest adding a documentation block about available relations.
It took me a while to find them so having such information at the start will save some time and effort for library users.
I am talking about those two relations as they are not described anywhere:
Also, PHPStorm IDE is not suggesting them until you scan the library models directory with the command (which may be worth mentioning):
php artisan ide-helper:models --dir="vendor/assada/laravel-achievements/src/Model"
Thanks for reading my suggestions and I hope to get back from you soon.
The text was updated successfully, but these errors were encountered: