I\'ve created a restful API using laravel controllers. I have a PhotosController
which has a destroy($id)
method for resource dele
I think your system's requiring the authentication for controller action "destroy" method. So you need to login before calling that method.
If you're using the middleware "auth" (app\Http\Middleware\Authenticate.php), you can easy find the "handle" function that returning "Unauthorized" error.
Hope this will help.