sehrgutesoftware/laravel5-api

View on GitHub
src/Laravel5_Api/Hooks/AuthorizeAction.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace SehrGut\Laravel5_Api\Hooks;

/**
 * Hook in here to check authorization for an action in general
 * (before any records are fetched from the db).
 */
interface AuthorizeAction extends Hook
{
    /**
     * Apply the hook.
     *
     * Throw an exception if the check fails, otherwise return $action.
     *
     * @return void
     */
    public function authorizeAction();
}