osb/app/Providers/AppServiceProvider.php

40 lines
825 B
PHP
Raw Normal View History

2017-11-03 05:26:07 +00:00
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Route;
2017-11-03 05:26:07 +00:00
use Illuminate\Support\ServiceProvider;
use Intuit\Traits\IntuitSocialite;
2017-11-03 05:26:07 +00:00
class AppServiceProvider extends ServiceProvider
{
use IntuitSocialite;
2017-11-03 05:26:07 +00:00
/**
2019-06-02 05:35:48 +00:00
* Register any application services.
2017-11-03 05:26:07 +00:00
*/
public function register(): void
2017-11-03 05:26:07 +00:00
{
}
/**
2019-06-02 05:35:48 +00:00
* Bootstrap any application services.
2017-11-03 05:26:07 +00:00
*/
public function boot(): void
2017-11-03 05:26:07 +00:00
{
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);
2024-08-14 12:16:09 +00:00
Route::model('pdo',\App\Models\Product::class);
2017-11-03 05:26:07 +00:00
}
}