Skip to content
Advertisement

Tag: laravel

How to call Laravel Model function with parameter into Vuejs (for calculating stock Qunatity)?

I have three model 1.Fertilizer, 2. Fertilizer Stock, 3.Fertilizer Sale. 2 & 3 have foreign key relation(fertilizer_id) & mysql quantity column . I want to calculate individual Fertilizer stock quantity in my fertilizer model and append with fertilizerController in inertia index page. What’s Wrong with my code? Controller Model Stock Function Answer Add this on your Fertilizer Model.

Separation the table and each name follows the table

I want Make Different on Table, Each table has a service name Dontt Need Loop Again Table same Group Name, Each group has the name of the service Check : https://i.ibb.co/NTnynGq/639.png View : Package.blade.php Package Model PackageController.php Want Separation each group has the name of the service Answer Option 1: You can add an ORDER BY group_id in the query

How to get the edit history of a product on an e-commerce website? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 months ago. Improve this question I have built an e-commerce website where the admin can edit the products through MySQL. Now I want to display the

Laravel URL Filtering with GET

I am building a simple Laravel routing to display an array when someone goes to http://127.0.0.1:8000/planets But I need to make a filter to check the array on what request has been send on the URL. For example: http://127.0.0.1:8000/planets?planet=mars I need to make sure that if a GET parameter is present, you filter the array based on whether the planet

how to get checkboxes values by name and check if these value exists in another array, become checked jquery laravel?

I’m trying to get values from checkboxes by their name, and check if these values exists in another array, if exists, so the values that exists, become (checked) by press a button, I use jquery for that, and tried a lot of ways but all checkboxes stills unchecked although I passed their values in if statement. Checkboxes: script(jquery): it’s supposed

Advertisement