mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Checks for routes
This commit is contained in:
parent
fdca196215
commit
3006f5882b
@ -176,7 +176,11 @@ class Document extends BaseModel
|
|||||||
|
|
||||||
public function generateRoute($absolute = false)
|
public function generateRoute($absolute = false)
|
||||||
{
|
{
|
||||||
|
try{
|
||||||
return route('api.documents.show', ['document' => $this->hashed_id]).'/download';
|
return route('api.documents.show', ['document' => $this->hashed_id]).'/download';
|
||||||
|
}catch(\Exception $e){
|
||||||
|
return '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function deleteFile()
|
public function deleteFile()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user