Authorizing Requests
Many times you would need a user authorization system for some requests. Api Auto Pilot gives you that ability, using the power of Laravel Policies.
Api Auto Pilot, treats Policies
, in the exact same way as the Laravel framework does. You can register your existing Policies
in the App\Providers\AuthServiceProvider
in the $policies array
, or you can follow the naming convention and let the policy be auto-discovered, by the package.