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
If you try to add the same context as laravel documentation tolds you, over here : https://laravel.com/docs/master/eloquent-relationships#many-to-many-polymorphic-relations i created same tables i created same relation functions over same models. and when i try to gather tags from my post i can't see. You can definetly understand this with the attached image.
// Post model get.
$p = Post::find(1);
//Post model is here.
dump($p);
//tags are not shown.
dump($p->tags);
//Tags can seen here.
dump($p->tags()->get());
we also try to declare $with over the model to be sure about it can come before initialization. and also in the example you can definetly see that.
Steps To Reproduce
just try to create fresh laravel application and create same tables at the document example and try to run commands i show as example at the above.
The text was updated successfully, but these errors were encountered:
We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here? Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.
laravel new bug-report --github="--public"
Please do not amend and create a separate commit with your custom changes. After you've posted the repository, we'll try to reproduce the issue.
Laravel Version
10.13.5
PHP Version
8.2.8
Database Driver & Version
Postgresql docker image latest
Description
If you try to add the same context as laravel documentation tolds you, over here : https://laravel.com/docs/master/eloquent-relationships#many-to-many-polymorphic-relations i created same tables i created same relation functions over same models. and when i try to gather tags from my post i can't see. You can definetly understand this with the attached image.

we also try to declare
$with
over the model to be sure about it can come before initialization. and also in the example you can definetly see that.Steps To Reproduce
just try to create fresh laravel application and create same tables at the document example and try to run commands i show as example at the above.
The text was updated successfully, but these errors were encountered: