What is this error?

|
yusuf_oS 2022-03-11 01:51:20
laravel_discuss-111272.jpg
Property [photouser] doesn’t exist on the Eloquent builder instance
punchlyn 2022-03-11 01:51:30
punchlyn 2022-03-11 01:50:00
public function update(Request $request, $id){
$category = Category::find($id);
if($request->hasFile(‘image’)){
$path = ‘assets/upload/category/’.$category->image;
if(File::exits($path)){
File::delete($path);
}

Please when I implement the filesystem with my update control it throws class filesystem does not exist

Pls help

yusuf_oS 2022-03-11 01:52:51
yusuf_oS 2022-03-11 01:51:20
Property [photouser] doesn’t exist on the Eloquent builder instance

Please help,
When I want to delete all users and their files, it shows this error

Angiigg 2022-03-11 01:53:59
Saicharandgp 2022-03-10 22:29:01
You will learn about MVC while learning laravel.
So you can start with laravel

Thank you, much appreciated

nasrulhazim 2022-03-11 04:44:32
menarik ni.test for API, based on Open API Specficiation

https://apisyouwonthate.com/blog/contract-testing-apis-laravel-php-openapi

Contract Testing a Laravel API with OpenAPIApisyouwonthate
Keeping your API and OpenAPI in sync doesn’t have to be complicated, the Laravel PHP edition.
Srivastava 2022-03-11 06:41:57
PHP Laravel Developer:

Job Description: We are seeking for an accomplished professional with minimum 3 to 5 years of developing experience in PHP, MySQL, & Laravel or similar PHP framework, HTML, css bootstrap and jQuery.

Job Responsibilities:
Frequently contribute core logic for data reporting and data mapping in Laravel.
API development & Integrations
Collaborate with Product Managers to deliver production-ready API’s and codes.
Define and maintain relational and NoSQL databases.
Building “Low-Code” data solutions.

Technical Requirements:

Expert in Laravel framework (Version 5+)
Expert in PHP 7/8 OOP
Proficient in front-end development (HTML, CSS, JS)
Strong understanding of REST APIs
3+ years experience building user-facing applications
High degree of proficiency with Git

Must requirements:-
BE/ b.tech/ MCA or any other similar qualification.
previous experience in an IT company only.
Excellent communication skills both written and verbal.
Good organization skills and the ability to multitask.
creative and efficient problem solving.
Immediate Joiner, at Sector-62, Work from Office

Shivam Sharma 2022-03-11 08:42:15
Sujata Kalita 2022-03-10 15:39:06
Rezorpay?

Yes mam

web design 2022-03-11 08:42:42
laravel_discuss-111281.jpg

web design 2022-03-11 08:42:57
What is this error?
web design 2022-03-11 08:43:28
And how to can solve it
PemudaKoding 2022-03-11 08:43:29
you can convert array to string
Shivam Sharma 2022-03-11 08:43:42
Ojsholly 2022-03-10 15:03:09
Read the docs of the payment gateway. Different gateways have different authentication mechanisms.

Tnku

PemudaKoding 2022-03-11 08:43:46
i think you just remove the dot before [$key]
Shivam Sharma 2022-03-11 08:44:06
foulla_sam 2022-03-10 15:02:45
Its depends on which payment gateway you are using.

Tnku

PemudaKoding 2022-03-11 08:45:26
PemudaKoding 2022-03-11 08:43:46
i think you just remove the dot before [$key]

bcs, in your code seems you try too join [$key] with request input as a string, it’s broke the rules so if you need access the request input with key just remove the dot

web design 2022-03-11 08:45:47
PemudaKoding 2022-03-11 08:43:46
i think you just remove the dot before [$key]

laravel_discuss-111290.jpg

yusuf_oS 2022-03-11 08:46:10
yusuf_oS 2022-03-11 01:52:51
Please help,
When I want to delete all users and their files, it shows this error

can anyone help?

PemudaKoding 2022-03-11 08:46:47
web design 2022-03-11 08:42:42

okay, i ask u, i’m corious why yo join array in request field with dot ?

PemudaKoding 2022-03-11 08:47:03
what you expected from it ?
PemudaKoding 2022-03-11 08:49:41
yusuf_oS 2022-03-11 01:51:20
Property [photouser] doesn’t exist on the Eloquent builder instance

might you can dd first of $deletedUsers
in my mind that photouser is not available in table

yusuf_oS 2022-03-11 08:56:11
PemudaKoding 2022-03-11 08:49:41
might you can dd first of $deletedUsers
in my mind that photouser is not available in table

when i delete user by id it work and it delete image user from folder , or if I write only $deletedUsers->forceDelete(); it delete data from photouser but it not delete image from folder

PemudaKoding 2022-03-11 08:58:21
try to dd $deletedUser And see the data or screenshot and send it here
web design 2022-03-11 08:59:50
PemudaKoding 2022-03-11 08:46:47
okay, i ask u, i’m corious why yo join array in request field with dot ?

laravel_discuss-111298.jpg

Noob Developer 2022-03-11 09:02:07
laravel_discuss-111300.jpg
question model
Noob Developer 2022-03-11 09:02:07
laravel_discuss-111299.jpg
quiz model
Noob Developer 2022-03-11 09:02:08
laravel_discuss-111302.jpg
quizcontroller
Noob Developer 2022-03-11 09:02:08
laravel_discuss-111301.jpg
answer model
PemudaKoding 2022-03-11 09:02:41
web design 2022-03-11 08:59:50

u tried to get field with looping ya

Noob Developer 2022-03-11 09:02:57
can anyone say my realation ship code is right or not
web design 2022-03-11 09:03:14
PemudaKoding 2022-03-11 09:02:41
u tried to get field with looping ya

how?

Noob Developer 2022-03-11 09:03:16
i am getting data sucessuly and its work
Noob Developer 2022-03-11 09:03:36
but my nested foreach loop dont work
PemudaKoding 2022-03-11 09:03:45
web design 2022-03-11 08:45:47

got it, i think this error shown coz the field is less than $item[‘value’]

Noob Developer 2022-03-11 09:04:25
laravel_discuss-111309.jpg
dont fetch my answer fetch only questions
PemudaKoding 2022-03-11 09:04:38
so you can avoid it with add ?? null after [$key]
|