I want to apply soft delete in laravel5.4 inbuilt reset password. Due to duplicate email of soft delete deleted email password is change but not the correct one. I am getting stuck to where apply …
Tag: laravel
How to know if my variable is empty (or null) after query – laravel
I am trying to do a permanent delete of previously deleted rows with softdeletes, but when there are no rows to delete my function stops working, I need an “if” for so that this does not …
Generate a last 7 days weekly report in Mysql
I want to get a report of my eco_orders table that how much order i get in a day for last 7days. I got the result with below sql and it’s absolutely fine. but the problem is I want to include the non order day count with zero Answer You can try this option –
How to insert 3 image to 3 field in DB Laravel
I want to insert 3 images to 3 fields in DB, but I can’t move this to folder public. My code in function store in Controller Someone help me. Thank you. Answer Try this:
Laravel Redis Jobs are not Being Queued
I am using Laravel with Phpredis and I’ve created a webhook that adds a job to the queue. I’ve followed the docs for the interrogation but my jobs are not being queued. .env QUEUE_CONNECTION=redis config/database.php ‘client’ => env(‘REDIS_CLIENT’, ‘phpredis’…
How to Set an Expiration Date after a Year in Laravel
I’m trying to make an investment website where I want to set an expiration date exactly after a year that the registration was made. Upon the registration, an initial deposit is required which is the …
Laravel how to register a user with a default image in user::create
I wanted to make it that when you register a new user it comes with a default picture : https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png I tried something like this but it …
Problem with loading modal in bulma with Laravel
I have a link on one page that goes to another route where when clicked I want to open modal. I am using bulma with Laravel. Currently when clicked it goes to that route and it shows plain html and …
Laravel find and replace content on the basis of a expression in content coming from Db
I have a blog content in which admin can add pattern like this => %make123%. when that content is to be displayed i have to replace that %make123% with the vehicle id of 123 but now how to get that 123 from my content. and then make another query to search the vehicle with that id. this is my controller
array_push() expects parameter 1 to be array, int given
I am getting array_push() expect parameter one to be an array, any solution? Answer you have referenced the variable as an array first time. but when you are using it for array push with $activeCourses = it becomes an integer field as array_push returns an integer value and then when it comes to next array pu…