Skip to content

Tag: laravel

Multiplication in Laravel controller not displaying in view

I am trying to multiply the total dollar amount of cart items by a sales tax amount and have that displayed in my view. It seems to be working, or at least I get no errors, but I get no tax displayed in my view. In my payment controller I have this And in my view I have this All

how to update existing product in laravel?

I’m trying to edit existing property’s listings in my laravel application using the following method ListingController the edit.blade.php I tried using this method but was confronted with this error SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘balcony’ cannot be null. …

Resource Controller Concept

I am unable to find the issue. It is showing 404|Not Found update.blade.php PostController.php (a resource controller) route: please tell me what is the issue in this. one of the advice I got is to change the name of view file i.e update.blade.php to edit.blade.php. I don’t know how does it help Answer …

Laravel select records with pivot table

I have a little problem with eloquent. I have 3 tables. Users, phrases, and phrase_user. phrase user contains columns: id, phrase_id, user_id I need to select phrases with pivot table for example. This action with SQL will be like this… This is my index function in controller I also have written these f…

Class ‘AppHttpControllersProducts’ not found in laravel

I am new to Laravel, so I am trying to store some information coming from a form and I am getting this error: Class ‘AppHttpControllersProducts’ not found I have tried adding use products; but it still doesn’t work… Here is my code: Products Controller Products model Any help is greatl…