Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (27 sloc) 523 Bytes
<?php
namespace App\Providers;
use Laravel\Horizon\Horizon;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Horizon::auth(function ($request) {
return $request->user() ?: false;
});
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}