Category "php"

Laravel Livewire image upload verification on edit form problem

I have a product page with an image upload form built with Livewire. when i revisit the page to update information, the page will only submit if I also pass thr

Laravel Livewire image upload verification on edit form problem

I have a product page with an image upload form built with Livewire. when i revisit the page to update information, the page will only submit if I also pass thr

Laravel weird issue: query return data with DB::table() but not with model::

I found an issue when delete some data, so I isolated the code Route::get('v1/testapi', function (Request $request) { return [ DB::table('attendances')->

Laravel weird issue: query return data with DB::table() but not with model::

I found an issue when delete some data, so I isolated the code Route::get('v1/testapi', function (Request $request) { return [ DB::table('attendances')->

I'm working at laravel project but there is always that error : ErrorException Creating default object from empty value

this is my candidatController.php the error is in the line before the last line($prev_canditure->etat="archifé";) $candidat_nw=Candidat::orderby('crea

I'm working at laravel project but there is always that error : ErrorException Creating default object from empty value

this is my candidatController.php the error is in the line before the last line($prev_canditure->etat="archifé";) $candidat_nw=Candidat::orderby('crea

Calculate an IPv6 range from a CIDR prefix?

I am able to do this with IPv4 using code snippets from various online sources. I was wondering if there was a way to do it with IPv6. Basically I just need a f

Laravel Browsershot "node" not found

I got an error by using Browsershot in Laravel 8 (Laravel Code) $content = view('welcome')->render(); return Browsershot::html($content) ->noSandbox(

Call to undefined method mysqli_stmt::get_result

Here's my code: include 'conn.php'; $conn = new Connection(); $query = 'SELECT EmailVerified, Blocked FROM users WHERE Email = ? AND SLA = ? AND `Password` =

Composer not working, windows 10 , MAMP PRO

I started using MAMP PRO in windows 10 because i need to change php versions for different projects, but composer is not working, im getting this error: $ compo

Update order details in prestashop rest api

I need to update shipping details of an order using rest api in Prestashop. I need to update Tracking no, Tracking company name etc. from rest API. I searched a

Parameter Binding in CodeIgniter 3.1 Query Builder

I have a query $column = 1234; $sql = "SELECT * FROM TABLE WHERE COLUMN = ?"; $result = $this->db->query($sql,[$column])->row(); which works completel

How to update libc.so.6(GLIBC_2.26)(64bit) to 2.27 and more on OPENSUSE LEAP15.2 linux distribution. Opensuse, php8-fpm, php8, apache2

I updated the php7 to php8 and I tried to install php8-fpm (nginx) or apache2, but during installation, I am getting this error: Problem: nothing provides 'lib

Laravel stripe preview Invoice if the subscription has a scheduled transition

Logic of my subscriptions. If the transition from smaller to larger is smooth, I calculate proportionally. If there was a transition from a higher to a lower ta

PHP PDO Sort Function error codes: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '256'

i am trying the sort operation in function but i am getting the error given below. I'm leaving the function codes below error: Xdebug has detected a possible in

Preflight CORS error followed by 404 error

I am experiencing an issue when trying to get data from API for my react app. I am trying to pass protect my API using htaccess file so when trying to send auth

How to pass all user's data when clicking edit button?

I created a display page using php where all users records are displayed in a table and there are delete and edit buttons to manage users, for the delete option

PHPSpreadsheet setAutoSize function not working as expected

I am using PHPSpreadsheet and I'm doing the following to autosize the relevant columns: foreach (range('A', 'K') as $col) { $productsSheet->getColumnDime

Laravel migration: using a native PHP enum

In PHP 8.1, native support for enums were introduced. How can I use them in a Laravel Migration? My first thought would be something like this, but it does not

Display Data from MYSQL using PHP Dropdown

I need to display data from the 'Members' table based on the selected 'grad_date' from a drop down. I have been trying to do it for a while now but have struggl