Created
December 1, 2016 18:25
-
-
Save kdes70/6027b087284e464cf1f1d6a01353cd68 to your computer and use it in GitHub Desktop.
Чтобы поместить HTML боковой панели в шаблоне blade. (Laravel)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@include('partials.sidebar') | |
To pass the data the sidebar needs (in AppServiceProvider boot method) : | |
view()->composer('partials.sidebar', function ($view) { | |
// Get the $data | |
$view->with('data', $data); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment