mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Add laravel pulse to track site data
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Pagination\Paginator;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
@@ -15,6 +17,9 @@ class AppServiceProvider extends ServiceProvider
|
||||
Paginator::useBootstrapFive();
|
||||
$smarty = app('smarty.view');
|
||||
view()->share('smarty', $smarty);
|
||||
Gate::define('viewPulse', function (User $user) {
|
||||
return $user->hasRole('Admin');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user