I am using laravel 6 : need user to find records by search bar, but it shows No Available Records enter image description here this in my model:Category model: public function scopeWhenSearch($query,…
Tag: controller
I am getting this error. Method IlluminateValidationValidator::validateReqiured does not exist
I am getting this error for validation of form. Method IlluminateValidationValidator::validateReqiured does not exist. <?php namespace AppHttpControllers; use IlluminateHttpRequest; …
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: