0👍
In your controller, the condition if(request('photo'))
is always true.
To Retrieving Input from the request use Request $request
variable. for example:
for file: $request->file('photo')
;
for other text: $request->input('description');
Source:stackexchange.com