download attribute of html is not working for iphone browser

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 …

php bootstrap modal pass id user

how to open a modal with id from this code <a href = "../user/scalauser.php?id_user='. $row['id_user']. '" class="btn btn-info" data-toggle="modal" data-target="#…

Laravel Models properties declaration

I have the following model: class User extends Authenticatable { private string $first_name; public function name() { return $this->first_name; } } when I call that method from a controller,…

How to get a specific length of string in my array?

I am generating an integer from 5-10. once I generate an integer ranging from 5-10, the loop should choose a string on my array that has a character length based on the random integer that is …

Laravel 8 database connection not working

Trying to connect laravel 8 app in production to mysql database. Have tried to follow documentation but it isn’t working. .env file as follows DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 …

Object of class IlluminateDatabaseEloquentBuilder could not be converted to string laravel 7

I have been trying to debug a problem for the past two days, my code, as follows, is first attempting to retrieve the category by its: Controller public function index(Request $request) { $stats = …

Dropdown with Search Box using Bootstrap Selectpicker not working

I’m trying to search for supplier from the database using the bootstrap-select picker on the dropdown. What I want is while typing in a letter, the dropdown shows the relevant name from the database. …

wp_remote_get and url parameters

I’m trying to use an API with wp_remote_get which requires pagination. Currently, my WordPress plugin calls the API the following way $response = wp_remote_get( “https://api.xyz.com/v1/products&…

XDEBUG_PATH_EXCLUDE in xdebug.ini

I have a setup with CentOS where xdebug 3 is installed. As we are having problems with our umask for PHP processes with have in the php.ini added an umask.php file with auto_prepend_file, when …

How to perform couple of mysqli queries and add one result into existing result array?

Need to perform couple of mysqli queries and add one result into existing result array, currently I have implemented first query, $dataQuery = “SELECT * FROM movies_table”; $sth = …