39 lines
775 B
PHP
39 lines
775 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\Facades\Gate;
|
|
use Illuminate\Support\Facades\Route;
|
|
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();
|
|
|
|
Route::model('co',\App\Models\Checkout::class);
|
|
Route::model('po',\App\Models\Payment::class);
|
|
}
|
|
} |