20 lines
423 B
PHP
20 lines
423 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
|
use Illuminate\Support\Facades\Gate;
|
|
use App\Models\Pesanan;
|
|
use App\Policies\PesananPolicy;
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
{
|
|
protected $policies = [
|
|
Pesanan::class => PesananPolicy::class,
|
|
];
|
|
|
|
public function boot()
|
|
{
|
|
$this->registerPolicies();
|
|
}
|
|
}
|