Skip to content
Advertisement

Tag: controller

Class AppHttpControllersManagerLoginController does not exist

I have been making a custom multi-auth and got the following error: Class AppHttpControllersManagerLoginController does not exist I have been searching for this error but couldn’t find the solution. I have attached the screenshot from my controller in the directory. ManagerLoginController.php web.php Answer Since ManagerController is not in root Controllers you need to specify namespace in your routes. It is

Limit Comment in Post Laravel

So this is the problem, I have application with post and comment. But I want to limit the comment per user, So if there is 1 post only 1 comment per user. Is it possible ? Here is my store function in CommentController: What query can I add in this store function to limit the user to only comment once

Required_if laravel with multiple value

I have a dropdown menu like this: