Answer the question
In order to leave comments, you need to log in
Destroy doesn't exist. What could be the problem?
When I try to delete an article on the site (namely from the user side, everything works without problems in the admin panel), it gives an error 500. If 'APP_DEBUG' is enabled, it says Method App\Http\Controllers\Member\ArticleController::destroy does not exist.
(1/1) BadMethodCallException
Method App\Http\Controllers\Member\ArticleController::destroy does not exist.
in Controller.php line 68
at Controller->__call('destroy', array('58'))
at call_user_func_array(array(object(ArticleController), 'destroy'), array('article' => '58'))
in Controller.php line 54
at Controller->callAction('destroy', array('article' => '58'))
in ControllerDispatcher.php line 45
at ControllerDispatcher->dispatch(object(Route), object(ArticleController), 'destroy')
in Route.php line 219
at Route->runController()
in Route.php line 176
at Route->run()
in Router.php line 680
at Router->Illuminate\Routing\{closure}(object(Request))
in Pipeline.php line 30
at Pipeline->Illuminate\Routing\{closure}(object(Request))
in UserRole.php line 24
at UserRole->handle(object(Request), object(Closure), 'admin', 'member')
in Pipeline.php line 163
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in Pipeline.php line 53
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question