Laravel appended attribute returns null when model is initiated through dependecy injection
I have an appended attribute that works when I do Model::first()->appended_attribute, but when get the model object instantiated through laravel's route dependency injection like below : public function update(UserRequest $request, User $user) { $user->appended_attribute; // returns null } When I…