View Not Found laravel 5.5

0

I am using an Apache / 2.4.25 host service (Debian) and when I enter the admin view, I am throwing this. The requested URL / admin / boton_panico was not found on this server.

in web.php I have this way

Route::get('admin', "PaginasController@admin_monitoreo");

Route::get('/', "PaginasController@home");

Route::get('/index', "PaginasController@index");

Route::get('admin.boton_panico', "PaginasController@admin_panico");

and create a page handler

    class PaginasController extends Controller
    {
        public function index(){
            return view ("welcome");
        }

        public function home(){
            return view ("home");
        }

        public function admin_monitoreo(){
            return view ("admin.admin");
        }

        public function admin_panico(){
        return view ("admin.boton_de_panico");
    }

    }

I do not know if it's an error in my view settings? or a typing error ..

    
asked by franmavazq 26.01.2018 в 12:01
source

1 answer

0

Maybe the error is at that point admin.boton_panico

Try this way:

Route::get('admin/boton_panico', "PaginasController@admin_panico");

The point is used to put the route of the views from the controller; in the routes the bar is used.

    
answered by 26.01.2018 / 12:37
source