1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Checks for routes

This commit is contained in:
David Bomba 2024-02-18 11:19:59 +11:00
parent fdca196215
commit 3006f5882b

View File

@ -176,7 +176,11 @@ class Document extends BaseModel
public function generateRoute($absolute = false)
{
try{
return route('api.documents.show', ['document' => $this->hashed_id]).'/download';
}catch(\Exception $e){
return '';
}
}
public function deleteFile()