You can do something like this
// view01
<h1>View 1</h1>
@include('view02')
// view02
<h2>View 02</h2>
See the documentation for more info: https://laravel.com/docs/4.2/templates#blade-templating
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hi friends, I have in (my Laravel ver.4) application view "view02.blade.php" which it can call via URL (route): http://localhost/.../SomeRoute02 it is code in "route.php": Route::get('SomeRoute02','SomeController@SomeFunc02'); and code in "SomeController" is: public function SomeFunc02() { ... $ThatArray=DB::select('... $ThatOtherArray=... return View::make('view02', array('SomeArray'=>$ThatArray, 'SomeOtherArray'=>$ThatOtherArray)); } and I have similar view "view01.blade.php" which it can call via URL (route): http://localhost/.../SomeRoute01 Code in "route.php" is similar also: Route::get('SomeRoute01','SomeController@SomeFunc01'); as well as code in "SomeController": ... return View::make('view01', array('AnotherArray'=>$AnotherArray)); } Until now I call both views separately (via their URLs), but now I need call only one view and displays information of both.
And my question is: how can I include view02 into view01? Let view01 has own content as well as view02 has own?
Please or to participate in this conversation.