How to include a sub-view in Blade templates?
问题 I am trying to set up a site using laravel, but I'm really having trouble with basic things that the documentation just doesn't cover. In this case, I see that it says I can include one view inside another by using @include('view.name') . What is view.name? Where is it saved? I tried creating a file app/views/view.name.blade.php , but it wasn't read. How does the file name map to the blade name? 回答1: EDIT: Below was the preferred solution in 2014. Nowadays you should use @include , as