This is my code from controller where I used looping to show this. the sample data of this are multiple dates: 2019-05-28 13:45:45 Now I’m trying the get the last date that will be shown using JavaScript. Currently I have this code: But this only gets the array of input types So I tried to use last() an…
Tag: laravel
Relationship with the same table (Many to Many?) – Laravel
In my database I have to save people and the data of people that have a relationship with the first. For example: father, mother, son, daughter, etc Then the design of the database, I did it in the following way Is a relation many-to-many because, a person have many people related to it. But I’m not sur…
Missing required parameters for [Route: login] [URI: {locale}/login] when i redirect as a guest
Whenever I redirect as a guest, I get an error: Missing required parameters for [Route: login] [URI: {locale}/login]. But it works fine when I logged in. Here are my web.php and HomeController web.php HomeController.php Answer The issue is in your AppHttpMiddlewareAuthenticate middleware. Your login route exp…
How to fix upload image to s3 using Laravel
I try to upload an image to s3 using Laravel but I receive a runtime error. Using Laravel 5.8, PHP7 and API REST with Postman I send by body base64 I receive an image base64 and I must to upload to s3 …
How to save generated qr Code in laravel?
I have generated QR code using “simplesoftwareio/simple-qrcode”: https://github.com/SimpleSoftwareIO/simple-qrcode Now I want to save the generated image in my local drive. How can I do it? Answer You can try
Running virtual hosts in apache docker container
I have two php applications in the same apache container and I’m trying to run one of them on a port since it needs to be accessible via a root domain and not a subfolder. I want to run the …
How to make Laravel’s Notification throw an Exception in test
I have a few laravel commands that inherit from my own class to send slack messages if they fail. However if the slack notification fails I still want the original exception thrown so that the error still ends up in the logs if slack is unavailable or misconfigured. I have this and it works, but I can’t…
How to intercept a new file on S3 using Laravel Queues?
I have an S3 bucket, mybucket, and I want to execute something when a new file is copied into that bucket. For the notifications, I want to use an SQS queue, notifiqueue, because my goal is to access that queue with Laravel Since I am creating my infrastructure in CloudFormation, the resources are created lik…
Laravel old method not returning password values
I’m currently learning Laravel and I’m creating a register form. When the form has errors I want to repopulate the input fields with their old values. My form looks like this: For readibility I removed all labels, classes and ids from the input files. It looks like Laravel doesn’t ‘wan…
Illuminate Broadcasting BroadcastException No message
I’m using Laravel websocket written by beyoundcode. After couple of days, I’ve connected to myDomain.com/laravel-websockets and first step solved. But now, when I trigger an event, laravel has error at this point: this is my stacktrace screenshot: I read these questions and issues but nothing work…