View::make('path/to/view'); View::make('foo/bar')->with('key', 'value'); View::make('foo/bar')->withKey('value'); View::make('foo/bar', ['key' => 'value']); View::exists('foo/bar'); // Share a value across all viewsView::share('key', 'value'); // Nesting viewsView::make('foo/bar')->nest('name', 'foo/baz', $data); // Register a view composerView::composer('viewname', function($view){}); // Register multiple views to a composerView::composer(['view1', 'view2'], function($view){}); // Register a composer classView::composer('viewname', 'FooComposer'); View::creator('viewname', function($view){});
Friday, March 24, 2017
Home
Unlabelled
how to use view in laravel 5.3 5.4
No comments:
Post a Comment