Tags:

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="#…

Tags:

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,…

Tags:

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 …

Tags: laravel mysql php

Laravel 8 database connection not working

Tags: , ,


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 …

Tags: laravel php

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

Tags: ,


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

Tags: , , , ,


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. …

Tags:

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&…

Tags:

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 …

Tags:

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 = …