file_path) && Storage::disk('local')->exists($certificate->file_path), 404); return Storage::disk('local')->download( $certificate->file_path, $certificate->title.'.'.pathinfo($certificate->file_path, PATHINFO_EXTENSION), ); } }