Trying to get property of non-object

Posted 2 months ago by RidwanIslam

Hello

I am getting this following error.

Trying to get property of non-object (View: /profiles/edit.blade.php)

Here is my code-

<div class="form-group row">
                                            <label class="col-sm-3 col-form-label">Others</label>
                                            <div class="col-sm-9">
                                                <textarea name="others" class="form-control" placeholder="Tell more about you.">{{ $user->profile->others ?? $user->profile->others }}</textarea>
                                            </div>
                                        </div>

Any idea?

Please sign in or create an account to participate in this conversation.