I have a laravel function that exports a Database query to Excel. I’m using MaatwebsiteExcelFacadesExcel. The problem is I’m trying to pass 2 dates as parameters but when I do so I get an Undefined …
Tag: laravel
preg_match() expects parameter 2 to be string, object given
i got this error when i’m trying to send multiple email, and i also want to pass a data to mail view. here is my controller: and here is my mail view: i don’t understand where i’m doing wrong, thankyou! Answer You don’t need to wrap the result of your query in an array. Also if you only want the
Laravel – Problem Of How To Tune Strange Behavior With Sending Text Message
I have a very special problem and I don’t know how to deal with it. I have web App in Laravel, when i open index page, I receive text message to my mobile phone. Problem is, sometimes I receive 2 messages or 3, sometimes 1. Is there a tool how to debug this strange behavior which is not always the
Laravel foreach loop malfunctioning with old() data
I have a form that allows users to add a new row of inputs by clicking a button. For some reason on form submit (with a required row purposefully left empty to test form repopulation), index #1 is being skipped, and it happens every time the form is submitted. Also, extra rows are added on submit, and I can’t seem
Laravel: Why are results from the database being displayed in the view differently than what Dump&Die says is retrieved?
I have a table called parts. The primary key is part_id, it is not to be incremented, it is a VARCHAR (Laravel string). All part id’s are 2 numbers, hyphen, 4 numbers (e.g. 12-3456) When the results from a query are displayed in the web browser they are not entirely the same as what Dump&Die <?php dd($parts); ?> says is
How to get records between two latitudes and longitudes using Laravel, php [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed last year. Improve this question here what I tried to get but it returns empty between 2 given coordinates Answer Check datatype Use a numeric database column type. Example of errors with a
Can you read JSON into Laravel and turn into DOM element?
I have a JSON file with text. I want to print that out into a div and have an anchor tag inside it. I have the JSON – Inside my controller, I decode the JSON Inside my view At the moment the p tag would just echo the response as a string A bunch of text here with a <a
How can I corrrect 404 NOT FOUND error, resulting from a view, route, controller scheme in Laravel 8?
I am seeing 404 NOT FOUND page after trying the code below, Here is my blade code, Here is my route, the route has a prefix called admin Here is my controller class, which is initially generated as a resource, however for the purpose of deleting a row from the database, a new function called delete is introduced manually. Therefore
How to Show Data After Login in Laravel
After successfully login from auth, I wan to show the data from database. But I got an error like this. Undefined variable: barangs (View: C:xampp7htdocsexample-appresourcesviewsbarang.blade….
Laravel : Set cookie for parent domain
I’m trying to build an SSO that will be shared between different applications with the same parent domain. Say we have these domains : sso.example.com Unified login page app1.example.com Some other application that will redirect to the login page When I set SESSION_DOMAIN=.example.com in .env file of the SSO project, the cookie is indeed set in parent domain and is