任何人都可以给我有关此错误的提示

任何人都可以给我有关此错误的提示

本文介绍了嗨,任何人都可以给我有关此错误的提示"NotFoundHttpException"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用路由"NotFoundHttpException"时有关此laravel的错误


//route

Im having a error about this laravel using route "NotFoundHttpException"


//route

Route::get('/account/activate/{code}', array(
        'as' => 'account-activate',
        'uses'  => 'AccountController@getActivate'
        ));




和错误出现在这里.对不起,我是新手

受保护的函数handleRoutingException(\ Exception $ e)
{
if($ e instanceof ResourceNotFoundException)
{
抛出新的NotFoundHttpException($ e-> getMessage());
}




and error appears here. sorry im a newbie

protected function handleRoutingException(\Exception $e)
{
if ($e instanceof ResourceNotFoundException)
{
throw new NotFoundHttpException($e->getMessage());
}

推荐答案




这篇关于嗨,任何人都可以给我有关此错误的提示"NotFoundHttpException"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 18:24