Questions tagged [php-8.1]

For questions specific to the usage and new features of PHP 8.1. Also, include the more generic [php] tag when using this tag.

PHP 8.1 (released November 2021) includes many new features including:

A full list of changes can be found in the migration guide.

336 questions
-2
votes
1 answer

Upload file to cloudinary in Laravel

error : exception : "Error" file : "C:\xampp\htdocs\Laravel\hotel-app\app\Http\Controllers\LoggedInUserController.php" line : 14 message : "Class "Cloudinary" not found" trace : (35) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…},…
-2
votes
1 answer

how can i fetch records between two specific hours in laravel

I have two working shift first from 8:00 Am to 17:00:00PM second From 17:00:00PM to 8:00AM next day, How can I fetch records between two hours by carbon {{\App\Models\PolicyDetail::wheredate('second_scale', \Carbon\Carbon::today())->count()}}
Echo Mind
  • 1
  • 3
-2
votes
1 answer

I get a "Non static method" error after upgrading to PHP 8.1

I have the following PHP error after upgrading from PHP7.4 to PHP8.1 $result = CarsDAO::selectCarsByColor($idCar, self::CARS_PER_PAGE, 0); Non static method 'selectCarsByColor' should not be called statically Any ideas how to rewrite this to be OK?
mk81
  • 13
  • 9
-2
votes
2 answers

Compatible MySQL version

Have a wamp server running php8.1. I get many Deprecation Notice. I've searched that the problem is about MySQL version. Wamp has MySQL 5.7.36. Does anyone knows which MySQL version is compatible with php 8.1?
pcharalam
  • 3
  • 1
  • 3
1 2 3
22
23