views in laravel

0

I have a route:

Route::get('index function(){
   return view('almacen.articulo');
});

It is an Index file found in: resources/views/almacen/articulo/index.blade.php and I call the view in my general index in this way:

<a href="{{url('/almacen/articulo'}}"

When opening this view in the browser, click on the corresponding option in my menu that is in the general index view of my project. I get the error:

  

PAGE NO FOUND

I am using Laravel 5.4 .

Could someone help me with this error?

    
asked by Appiweb 11.12.2017 в 03:27
source

1 answer

0
Route::get('/index', function(){
    Return view('almacen.articulo.index');});

The first parameter of Route :: get is the url after the domain and the second in this case is the function that returns a view. For the case of the view function, the parameter is the directory within views using points instead of slash plus the name of the file without extension.

    
answered by 11.12.2017 в 05:22