Support the ongoing development of Laravel.io →
Requests Forms

Hi I have a blog site build on laravel. There is a comment box. anyone can see the comment input textarea. Now I want that when anonymous submit comment it will check for auth via middle ware. I have included this code to controller

 public function __construct()
{
	$this->middleware('auth');
}

Now I want that after successful loging the comment text will be published. How can I do that ? plz help me

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

arctushar arctushar Joined 5 Oct 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.