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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community