Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #76 from slavarazum/move-views-loading
Browse files Browse the repository at this point in the history
Loading views moved from `register` method to `boot`
  • Loading branch information
freekmurze authored Jul 1, 2019
2 parents a86eeb7 + fe79e65 commit bbdb54f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BladeXServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public function register()
$this->app->singleton(ContextStack::class);

$this->app->alias(BladeX::class, 'blade-x');

$this->loadViewsFrom(__DIR__.'/../resources/views', 'bladex');
}

public function boot()
{
$this->loadViewsFrom(__DIR__.'/../resources/views', 'bladex');

$this->app['blade.compiler']->extend(function ($view) {
return $this->app[Compiler::class]->compile($view);
});
Expand Down

0 comments on commit bbdb54f

Please sign in to comment.