Skip to content

Commit

Permalink
fix compatible with laravel sanctum
Browse files Browse the repository at this point in the history
  • Loading branch information
bangnokia committed Mar 23, 2021
1 parent b24a4ae commit 9b691ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ResponseServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

namespace BangNokia\ServeLiveReload;

use BangNokia\ServeLiveReload\Middleware\InjectScriptsMiddleware;
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Support\ServiceProvider;
use BangNokia\ServeLiveReload\Middleware\InjectScriptsMiddleware;

class ResponseServiceProvider extends ServiceProvider
{
public function boot()
{
$this->loadViewsFrom(__DIR__.'/../views/', 'serve_livereload');

$this->app['router']->pushMiddlewareToGroup('web', InjectScriptsMiddleware::class);
$this->app->make(Kernel::class)
->prependMiddlewareToGroup('web', InjectScriptsMiddleware::class);
}
}

0 comments on commit 9b691ee

Please sign in to comment.