You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function addPost(ImageAddRequest $request) { if ($request->hasFile('image')){ $path = base_path()."/public/storage/pages/"; $image = $request->file('image'); $image->move($path, $image->getClientOriginalName()); $name = $request->name; } }
any instance of request after move gives and error that the temp file can not be found.
found exactly the line that is causing issue.
laravel/framework/src/Illuminate/Http/UploadedFile.php
Line 50
If I remove instanceof static it works fine.
The function is called from laravel/framework/src/Illuminate/Http/Request.php
Line 419