Laravel - Using (:any?) wildcard for ALL routes?

前端 未结 8 1183
时光取名叫无心
时光取名叫无心 2020-11-29 03:18

I am having a bit of trouble with the routing.

I\'m working on a CMS, and i need two primary routes. /admin and /(:any). The admin

8条回答
  •  感情败类
    2020-11-29 03:48

    Add this in the end of routes file

    App::missing(function($exception)
    {
        return View::make('notfound');
    });
    

    from http://scotch.io/tutorials/simple-and-easy-laravel-routing

提交回复
热议问题