I'm doing some routes in Laravel when I load these routes with the Laravel server works well for me http://127.0.0.1:8000/products
Answer me the return
of the driver that is 'good night'
the route is
Route::resource('products','ProductController');
and the view:
Route::get('/' , function(){
return view('app');
});
Controller:
class ProductController extends Controller
{
public function index()
{
return 'buenas noches';
}
}
In app this:
<body>
<div class="container">
@yield('content')
<a href="{{ route('products.index') }}">info</a>
</div>
<script src="{{ asset('js/app.js') }}" ></script>
</body>
but when I use it with xampp:
http://home.pro/laravel/tienda1/public/products
Show me:
Sorry, the page you are looking for could not be found.