I am trying to force download pdf instead of opening. I have used but its still open file in mobile devices like iphone I need to force to download file instead of …
Images not loading in CodeIgniter, image path correct error 403
I have an application where I save the image path in the database. I have a method Uploads //base url is $config[‘base_url’] = ‘https://localhost/salon’; $path is taken from the image This is how i set the background image. The error I get is 403 forbidden access when I try to open the…
Insert an array using seeders with laravel
Hi I want to insert this array using seeders into Laravel framework: I read that I can do it this way: But I want to insert these countries in the column name of my table: I don’t want to do it manually, I want to insert the array of above completely. Thank you so much. Answer Try this solution
Laravel 8: Symbolic Link not appearing in public
I have a problem with symlink. after I run this command php artisan storage:link the uploaded images are showing in the public and storage folder. I can display my img by using this code but after a day the shortcut of the images folder in public has gone and when I run the php artisan storage:link it says it…
Add “first” and “last” classes to strings containing one or more tags in PHP
I have two strings I’m outputting to a page What I’d like to do is turn them into this I’m essentially trying to replicate the css equivalent of first-child and last-child, but I have to physically add them to the tags as I cannot use CSS. The strings are part of a MPDF document and nth-chil…
get_meta_tags – if else [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 12 months ago. Improve this question I have: How I can add if else, If the meta tag ‘filter-title’ doesn’t ex…
Contact Form 7 – Get final mail HTML output
Is there a hook that will allow me to see exactly what is being sent out to an email? I’ve tried using ‘wpcf7_mail_sent’ and all it contains is array of the data and fields. For example it has “first-name”: “John”, “last-name”: “Smith”, ……
Laravel – How to pass model to the view without querying database when working with remote API to get Data?
I’m working on a Laravel web project that is fully integrated with external/remote Rest API. I’m trying to pass a model object that returned from API to a GET route by implicitly route binding but the …
replace li tag with different tag according to the bullet level
need to replace the li tags with different customized tag according to the bullet level, For the li level1 keep it as is, for level2 change li to lii, for level3 change li to liii For example for the input below (I have only 2 bullet levels in the below code just as example) desired output as you can see
User ID remove @ and transform “.” into “-“
I have this function in order to set a link for my user to go to their custom profile page : The issue is that if the user ID is his email like john@example.com the link https://mywebsite/author/john@example.com will have an 403 error. But if the is the link is https://mywebsite/author/johnexample-com it work…