php version (7.2.34) does not satisfy that requirement.

When i download the Laravel project from Github and setup project i run composer update its showing this types of error

Problem 1
- Root composer.json requires php ^7.3|^8.0 but your php version (7.2.34) does not satisfy that requirement.
Problem 2
- phpro/grumphp[v1.0.0, ..., v1.1.0] require php ^7.3 -> your php version (7.2.34) does not satisfy that requirement.
- phpro/grumphp[v1.2.0, ..., v1.3.1] require php ^7.3 || ^8.0 -> your php version (7.2.34) does not satisfy that requirement.
- Root composer.json requires phpro/grumphp ^1.0 -> satisfiable by phpro/grumphp[v1.0.0, ..., v1.3.1].

Let open editor and run below

composer install --ignore-platform-reqs

Thanks

Tagged : / / /

How to fix syntax error or access violation while use Group by

above error appear if you apply groupby in controller function is given below figure

Solution 1:In config/database.php at “mysql” change : ‘strict’ => true, to false

reference :https://stackoverflow.com/questions/49635699/laravel-distinct-on-join-results-not-working-in-query-builder

now Your bug resolved

Tagged : /

How to add multiple image using Laravel Microservice

Step 1: take input image name as array and write multiple in blade file

Step 2:store data using ajax

Step 3: set routing

Route::prefix(‘/touroperator’)->group(function () use ($namespace) {

$controller = $namespace.'\TourDashboardController';
$tourcontroller = $namespace.'\TourDetailController';

Route::post(‘addimage/{email}’, “$tourcontroller@addsimage”);

});

Step 4: In client side controller create function to get access token

take a variable as array and pass inside for loop and all the data pass inside for loop till no of image selected

Step 5: set env and app config file

ADD_MYHOLIDAYIMAGE_URL=/api/v1/j/addimagedetail

Step 6: Set routing in server side

Route::post(‘/addimagedetail’, ‘Admin\AdminTPController@storeimages’);

Step 7: apply bussiness query logic in server side controller

Finally our output looks like

Tagged : /