sehrgutesoftware/laravel5-api

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace SehrGut\Laravel5_Api\Hooks;

/**
 * This hook receives an array of relations to be side-loaded with the queried model.
 */
interface AdaptRelations extends Hook
{
    /**
     * Apply the hook.
     *
     * @param array $relations
     *
     * @return array
     */
    public function adaptRelations(array $relations);
}