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 An…
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: Option 1Option 2…
Class AppHttpControllersWelcomeController does not exist
I’m new in Laravel and I can’t understand why the controller doesn’t work. Can you help me? Thanks. This is the routes.php file: routes.php This is the WelcomeController controller: WelcomeController.php and this is the exception trowed: ReflectionException in Container.php line 737: Class A…
loading a view after an ajax call, CodeIgniter
I have an ajax call from javascript to a method in a controller, the method in the controller should be loading a view(like, show a new page on the screen), Although everything seems ok, the new view doesn’t seem to load on the screen. I cannot use header or windows.location because, i am passing an arr…
Check if in “dev” mode inside a Controller with Symfony
When using dev mode with a Symfony2.x application, one usually works in locale. Hence, such function does not works as expected (for instance, try to get the current IP under localhost). This could be a problem, e.g. when one try to use such ip-based web service. Hence, I just want to know how to check inside…