Answer the question
In order to leave comments, you need to log in
How to pull layout on laravel?
Hello everyone… The task is to pull the layout on the lara. In my head I understand how it should be. I created a folder in the public directory, uploaded pictures, scripts and fonts there. Next, we created a folder in views and named it layouts.blade.php. I took out the header and footer there, the content was left empty. Created a route
Route::get('/', function () {
return view('index');
});
<link rel="stylesheet" href="{{ asset('bootstrap/css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ asset('select2/select2.min.css') }}">
<link rel="stylesheet" href="{{ asset('nprogress/nprogress.css') }}">
<link rel="stylesheet" href="{{ asset('css/style.css') }}">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question