I’m trying to pass an array of dates through to my component, but it keeps throwing [Vue warn]: Property or method “dates” is not defined on the instance but referenced during render I don’t …
Tag: laravel
How to calculate and append a variable to a model in laravel
Considering I have 3 models with relation Hotel Room and Pricing in my app, I need to show the cheapest room for each hotel. I want to calculate the pricing and get the lowest price for a certain …
Laravel: Comparing dates between two columns in database not working
We are trying to build and api with our project. My problem is when I need to get a specific event which has a column date_from and date_to it always gets the data even if the event was finished. I …
fetchall returns stdClass object in laravel
I’m executing a query to a db2 ibm database in Laravel. call STOREDPROC.GET(‘leaders’, ‘{“params”: “”}’, ‘lead_management’, ‘FR’); The problem is that the fetchAll() returns an array of stdClass …
adding line break in string data coming from database in laravel
here the above code is my orders display code I want to add line breaks in product_name which is the string and showing like Hp I7 8th generation, Huawei p30 pro I want to break the line and add the second product which is after the comma in the next row of the table here is the image of how
CSRF token mismatch Laravel ajax delete data
I want to delete data from a database with an ajax call but it’s showing an error. CSRF token mismatch In header: In blade: AJAX call: Controller: Answer This is what I usually do : [AJAX CALL]
Meta description for index page not appearing in laravel framework
I have 3 sets of URL (index page, detail page and review page). For detail page and review page, meta description are appearing but not in index page. @if(strpos(Route::getFacadeRoot()->…
Class ‘applogin’ not found in laravel 5.8
I am using laravel 5.8 and have an issue with model class. Since model is placed directly in app folder. namespace App; use IlluminateDatabaseEloquentModel; class Login extends Model { // } …
Getting 404 in laravel 6.x
I have created ApiController in AppHttpControllersApiv1 Also created auth using laravel/ui Default created function for front end working perfectly. But issue is when try to call the …
Multiple image retrieval with laravel
I have uploaded multiple images to database already. Now i am trying to display them in my view. while using foreach to loop through images i am getting error – Invalid argument supplied for foreach() …