The expression return response()->json($data) returns the type Illuminate\Http\JsonResponse which is incompatible with the documented return type Illuminate\Http\Response.
Loading history...
51
}
52
53
public function downloadExportedFile($id)
54
{
55
// Map export instance
56
$export = ModelExport::findOrFail($id);
57
58
if (! file_exists(storage_path('app/exports').'/'.$export->file) || empty($export->file)) {