How to solve “__construct() must be an instance” error in laravel?

I am facing an error. But i don’t know how to solve this.Someone please help me.I am providing code bellow: **Controller.php** public function store(Request $request){ $this->validate($request, [ ‘title’ => ‘required|max:255’, ‘content’ => ‘required’, ]); $user = Auth::user(); $single_post = $user->posts()->create([ ‘title’ => $request->title, ‘content’ => $request->content, ‘published’ => $request->has(‘published’) ]); $post = Post::all(); broadcast(new ViewPost($post))->toOthers();…