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)
|
||||
{
|
||||
try{
|
||||
return route('api.documents.show', ['document' => $this->hashed_id]).'/download';
|
||||
}catch(\Exception $e){
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
public function deleteFile()
|
||||
|
|
|
|||
Loading…
Reference in New Issue