Permission denied

Posted 3 years ago by Khudadad

I trying to delete a file from public directory but I'm facing with this error:

ErrorException in BookController.php line 119: unlink(F:\Projects\kpucollege\public/): Permission denied

this is my function in the Controller.

public function destroy($id)
    $book = Book::findOrFail($id);
    $book_path = public_path().'/'.$book->book_path;
    return redirect('admin/dashboard/books')->with('message','کتاب موفقانه حذف شد');


Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.