Laravel PDF-to-image: ImagickException: not authorized

if i upload a image in my tool and click on next step then following error occurs:

ImagickException: not authorized `/tmp/comcard_NEgyzR.pdf' @ error/constitute.c/ReadImage/412
/vendor/spatie/pdf-to-image/src/Pdf.php in line 169

Any idea. This happend from one moment to another.

  • Laravel 5.7, do something before user logout

    I wanted to set the current user type field to something else before logout but the problem is, I don't know which controller or which method I should put this code at. Btw, I don't have AuthController in Laravel 5.7.

    $user = Auth::user();
    $user->type = "something";