How to fix migration error in php8?

|
Azad Akhtar 2021-04-07 08:38:17
Hello Friends
https://prnt.sc/11685rv

ScreenshotLightshot
Captured with Lightshot
Azad Akhtar 2021-04-07 08:39:15
i am getting in server error of :
Azad Akhtar 2021-04-07 08:39:25
if ($request->hasFile(key:

‘post_image’))

2021-04-07 09:04:28
What’s the error message?
2021-04-07 09:05:19
->hasFile(‘post_image’) should work.
Azad Akhtar 2021-04-07 09:57:52
okay let me try
Azad Akhtar 2021-04-07 10:03:55
laravel_discuss-75714.jpg
removed key: than this error getting
WEBLYSS SOFTWARE 2021-04-07 10:04:32
HI, ANY COMPANIES NEEDS THEIR COMPAMY PROFILE/BROCHURE TO BE DESIGN/RE-DESIGN, WE ARE DOING PROFESSIONALY IN VERY MUCH LUCRATIVE PRICE,IF INTERESTED PLS. CALL /PM ME,COTACT +918763609742 / EMAIL info@weblyss.com (SAMPLES WILL BE PROVIDED IF INTERESTED), THANK YOU
pringal7 2021-04-07 10:46:52
Azad Akhtar 2021-04-07 08:39:25
if ($request->hasFile(key:

‘post_image’))

Print – dd($request->all()) and check that if post_image has only string? If yes than it’s wrong

It should be

“post_image” => UploadedFile {#30
-test: false
-originalName: “15940723_1336567063030425_9215184436331587115_n.jpg”
-mimeType: “image/jpeg”
-size: 5126
-error: 0
}

like this

Azad Akhtar 2021-04-07 10:47:56
Okay let me try with this
Thanks
sadeqi125 2021-04-07 10:49:00
laravel_discuss-75718.jpg
how to fix migration error in php8 ?
pringal7 2021-04-07 10:53:18
sadeqi125 2021-04-07 10:49:00
how to fix migration error in php8 ?

laravel_discuss-75719.jpg

pringal7 2021-04-07 10:53:30
Laravel document has been updated to reflect this issue.
sadeqi125 2021-04-07 11:05:40
pringal7 2021-04-07 10:53:18

ok what we do now to run my migrations?

Mostafa1712002 2021-04-07 11:21:22
hi guys , look to this error can some one help me..❤️
Mostafa1712002 2021-04-07 11:21:33
The Error is Only one usage of each socket address (protocol/network address/port) is normally permitted
Warning: mysqli::__construct(): (HY000/2002): Only one usage of each socket address (protocol/network address/port) is normally permitted in F:xampphtdocsProjectsecommerceadminconnect.php on
jakhongir_bakhodirov 2021-04-07 13:26:26
laravel_discuss-75729.jpg
hi guys why this error caused
I wrote this parametr in my edit.blade.php file
jakhongir_bakhodirov 2021-04-07 13:26:57
jakhongir_bakhodirov 2021-04-07 13:26:26
hi guys why this error caused
I wrote this parametr in my edit.blade.php file

laravel_discuss-75730.jpg

PHP Begginer 2021-04-07 14:57:58
I am having some problem .I have created a controller and imported at the top but I get the following error Target class [GradesAppHttpControllersGradesGradeController] does not exist.Route::resource(‘Grades’, AppHttpControllersGradesGradeController::class);
sobirjonovs 2021-04-07 14:59:49
PHP Begginer 2021-04-07 14:57:58
I am having some problem .I have created a controller and imported at the top but I get the following error Target class [GradesAppHttpControllersGradesGradeController] does not exist.Route::resource(‘Grades’, AppHttpControllersGradesGradeController::class);

use AppHttpControllersGradesGradeController;

Route::resource(‘grades’, GradeController::class);

sobirjonovs 2021-04-07 15:00:42
jakhongir_bakhodirov 2021-04-07 13:26:57

show your named route please

2021-04-07 15:04:48
laravel_discuss-75738.jpg
guys set dd($anime[‘title’] and its compeletly worked , but when i want to store in my database i catch Array to String , wdym ? really i cant undrestand
2021-04-07 15:05:43
laravel_discuss-75739.jpg
dd $anime[‘title’]
jakhongir_bakhodirov 2021-04-07 15:09:40
sobirjonovs 2021-04-07 15:00:42
show your named route please

Route::get(‘home/partiyalist/{id}/edit’ , [AppHttpControllersPartiyaListController::class , ‘edit’])->name(‘partiyaList.edit’);

Route::delete(‘/home/partiyalist/{id}/destroy’ , [AppHttpControllersPartiyaListController::class , ‘destroy’])->name(‘partiyaList.destroy’);

Route::patch(‘home/partiyalist/update’ , [AppHttpControllersPartiyaListController::class , ‘update’])->name(‘partiyaList.update’);

2021-04-07 15:12:05
2021-04-07 15:05:43
dd $anime[‘title’]

laravel_discuss-75741.jpg

sobirjonovs 2021-04-07 15:13:43
jakhongir_bakhodirov 2021-04-07 15:09:40
Route::get(‘home/partiyalist/{id}/edit’ , [AppHttpControllersPartiyaListController::class , ‘edit’])->name(‘partiyaList.edit’);

Route::delete(‘/home/partiyalist/{id}/destroy’ , [AppHttpControllersPartiyaListController::class , ‘destroy’])->name(‘partiyaList.destroy’);

Route::patch(‘home/partiyalist/update’ , [AppHttpControllersPartiyaListController::class , ‘update’])->name(‘partiyaList.update’);

there is no {id} wildcard in your patch method

jakhongir_bakhodirov 2021-04-07 15:14:12
sobirjonovs 2021-04-07 15:13:43
there is no {id} wildcard in your patch method

when I write id it caused error

sobirjonovs 2021-04-07 15:14:43
jakhongir_bakhodirov 2021-04-07 15:14:12
when I write id it caused error

It doesn’t

jakhongir_bakhodirov 2021-04-07 15:14:47
sobirjonovs 2021-04-07 15:13:43
there is no {id} wildcard in your patch method

it should be id I know

sobirjonovs 2021-04-07 15:15:44
jakhongir_bakhodirov 2021-04-07 15:14:47
it should be id I know

{{ route(‘partiyaList.update, [‘id’ => $partiyaList->product_id]) }}

sobirjonovs 2021-04-07 15:16:09
Or try this and optimize your routes with

php artisan optimize

jakhongir_bakhodirov 2021-04-07 15:19:17
sobirjonovs 2021-04-07 15:15:44
{{ route(‘partiyaList.update, [‘id’ => $partiyaList->product_id]) }}

laravel_discuss-75748.jpg
xatolik berdi negadur

sobirjonovs 2021-04-07 15:20:06
jakhongir_bakhodirov 2021-04-07 15:19:17
xatolik berdi negadur

noto’g’ri yozilgan ‘ qolib ketgan, telda yozyapman )) o’zingiz e’tibor berib to’g’rilab qo’ying

jakhongir_bakhodirov 2021-04-07 15:20:28
sobirjonovs 2021-04-07 15:20:06
noto’g’ri yozilgan ‘ qolib ketgan, telda yozyapman )) o’zingiz e’tibor berib to’g’rilab qo’ying

‘ qoydim lekin xatolik berdi

sobirjonovs 2021-04-07 15:20:51
jakhongir_bakhodirov 2021-04-07 15:20:28
‘ qoydim lekin xatolik berdi

{id} qo’shdizmi update routega

|