-
Notifications
You must be signed in to change notification settings - Fork 864
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
401 additions
and
307 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace SMS\Composers; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
class ComposerServiceProvider extends ServiceProvider | ||
{ | ||
|
||
public function register() | ||
{ | ||
$this->app->view->composer( | ||
"layouts.master", | ||
"SMS\Composers\MasterComposer" | ||
); | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* attached variable to the master view | ||
*/ | ||
namespace SMS\Composers; | ||
|
||
use Illuminate\View\View; | ||
|
||
class MasterComposer | ||
{ | ||
/** | ||
* compose the view with related variable | ||
*/ | ||
|
||
public function compose(View $view) | ||
{ | ||
$view->with('idc', 'a2912335b89e3cf6ea0034d0abf74f870d2c769f'); | ||
} | ||
|
||
} |
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
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
Oops, something went wrong.