I am trying to display a default image if user do not have profile image but I am not getting what to do next so.. can any write further code as I tried this co
I'm using the .htaccess mobile redirect below which I found on an older post here. It works great, but I need to exclude several directories from the redirect r
I am trying to create a drop down list box in woocommerce but have it populated with data from the database. I have the majority of the code working but the po
When I worked on laravel local development server php artisan storage:link works fine for me. But when I transfer my site to production server then I saw my pub
I have created a form which is having a lot of fields and user can create an unlimited field in it. If a user spends more time on it CSRF token get expires and
I am trying to build a docker image for php, which can handle database dumping in my mysql container. The problem is that it seems to install the mariadb versio
I wondered if it was possible to read a csv file written like this in symfony using League csv or something else. water_level,2,456,345 wind_speed,2
I have performed a fresh install of Laravel Jetstream. Upon completing all the steps outlined in the Jetstream (Inertia) set up process, the project starts up f
I am trying to get Json Data from a https url. I have tested and working code to do just this for http but I am yet to find a working version
I have an enum: enum Type: int { case OFFENSIVE = 1; case SPAM = 2; case IRRELEVANT = 3; } I understand I can get all types and their values with T
As in https://www.w3schools.com/php/func_string_substr_replace.asp <?php echo substr_replace("Hello","world",0); ?> where is the needle
I'm trying to modify models after creating them with Factory. I have defined configure() method and within it what I want changed within the model. However, Lar
I am using Stripe to test how my code would react to recurring subscription renewal payment attempts for a product we are working on (need to test success, fail
Below is an array of strings and numbers. How could the string and number values be split into separate arrays (with strings in one array and numbers in another
CodeIgniter force_download is not working My Code: if(!empty($articlefile)){ if(file_exists('./media/journals/xml/'.$articlefile)){ $this->load->hel
The submit button is in contact-us.html, the code is in contact-us.php. I tried to use the header('Location: example'); with no luck... (I tried using the URL
I'm trying to print {{$day->date}} in a view. Instead of full date YYYY-MM-DD the property only returns year YYYY. Can anyone explain me why it is working li
I create Laravel PHP application in Docker. First I setup Laravel app using laravel new laravelDockerApp it creates successfully.I verify
I am working on a project where a user can upload webp images. I know how to convert webp images into jpg/png, but am stuck on how to identify whether the webp
In a Yii2 project I want to download file backup. I have setup the download button in my action column. My code doesn't work, when I click the download button,