osb/app/Providers/AppServiceProvider.php
Deon George 5f10175b35
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 35s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
Updated datatables, using @pa instead of @js/@css, using conditionalPaging in datatables
2024-07-28 21:33:30 +10:00

35 lines
637 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\ServiceProvider;
use Intuit\Traits\IntuitSocialite;
class AppServiceProvider extends ServiceProvider
{
use IntuitSocialite;
/**
* Register any application services.
*/
public function register(): void
{
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
Gate::define('wholesaler', function ($user) {
return $user->isWholesaler();
});
Gate::define('reseller', function ($user) {
return $user->isReseller();
});
$this->bootIntuitSocialite();
}
}