I'm trying to render on my product show/index page what category a specific product belongs to. I don't know if I need to create a join table or if th ...
I'm trying to render on my product show/index page what category a specific product belongs to. I don't know if I need to create a join table or if th ...
Hello Developers & Coders , My question is How to define a global variable , that can be used in all controllers in Laravel ? I have defin ...
could you please tell what is right url for the controller method GetProfileById with attribute 'id' I tried many urls like 'http://localhost:5000/api ...
I'm trying to implement a simple search function for my Rails app by following this guide. I am trying to allow users to search for animal by name. H ...
I added the services folder in my app. I added in composer.json the apps/services below apps/models. Then I performed "composer dump-autoload" Here' ...
Let me just start off by saying I'm VERY new to Laravel. I have a table for listbox items (truncated migration code below): Group is used for e.g ...
I am new to Ruby on Rails. I want to have following structure for admin section. app/controller/admin/admin_controller.rb and all other admin sect ...
Would you please help me? The data (itemStr) is not passed even though the below code seems correct and I have already checked the similar questions o ...
I have to fix a problem on an existing website. How it is now: // controllers/front/ParentOrderController.php // controllers/front/OrderController ...
Imagine I have this route when I do where $s is a string that might be something like "clean" that has the id 1 for example. It's better to ma ...
This kind of problem only happens in a specific view where I generated reports. When I generated the report it seems to be okay, but when I tried to ...
I am stuck with this problem. I am working with codeigniter 3. Only default controller's index function is being loaded. No other controller is work ...
I'm figuring out how can I delete some resource from an external API from destroy action in Rails controller. to delete this resource I have to do th ...
I have domains webpage.com, webpage.ee, webpage.eu and I would like to merge them under the same domain with webpage.com/ee or webpage.com/eu. What ...
I have a project where there is a controller within a web forms application. My controller is called Token this controller inherits from BaseTok ...
I am using Laravel 5.5 version. I defined my routes in the routes.php file. like this:- But when I run my application laravel gives error:- Metho ...
I have a HTML code on ng-click from the controller i'm invoking a function vm.setValue by passing id to controller1 where i am passing id value to ...
I have a Model called "Image", and in my controller, i have to insert in my table some data : I instencie the right class "Model\Image" but when i ...
I have a design question about MVC and controllers I have this two routes But know, I would like to add another route for the index like this I ...
Let's imagine that we want to build a simple cms application in Symfony, we are going to code the functionality to "crud" the posts and then we are go ...