S
S
Sergey Zavialov2019-02-01 13:42:03
Laravel
Sergey Zavialov, 2019-02-01 13:42:03

Laravel 5.7 how to create a new view and route to it?

On the path C:\openserver\domains\blog\routes in the web file I create a route

Route::get('/page', function () {
    return view('page'); 
});

In the views directory C:\openserver\domains\blog\resources\views we form a new view
We create a page.blade file (a regular html document)
When typing in the address bar of the browser
http://blog/page
A message
Объект не найден!..
appears The route is set, the view is created. What could be the problem here?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question