Apparently the fresh() method expects you to specify the relations to be loaded. https://laravel.com/api/7.x/Illuminate/Database/Eloquent/Model.html#method_fresh https://laravel.com/api/5.8/Illuminate/Database/Eloquent/Model.html#method_fresh
i believe the issue was in a relation between user and comments and i fixed it this issue happend because i tried to override or overwrite the primary key (id) for users table and i'm using uuid so should i use the protect method for Keytype to string and it's finally working
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.