You are viewing documentation for an outdated version. It is no longer supported!

Setup

Register Service Provider

Register ApiResourceServiceProvider inside your config/app.php.

return [

    // ... previous not shown ... //

    /*
    |--------------------------------------------------------------------------
    | Autoloaded Service Providers
    |--------------------------------------------------------------------------
    */

    'providers' => [

        \Aedart\Http\Api\Providers\ApiResourceServiceProvider::class

        // ... remaining services not shown ... //
    ],
];

Note: The ETagsServiceProvider is automatically registered, when you register ApiResourceServiceProvider.

Publish Assets

Run vendor:publish to publish this package's assets.

php artisan vendor:publish

After the command has completed, you should see the following configuration files in your /configs directory:

  • api-resources.php
  • etags.php (See ETags package for additional information)

Publish Assets for Athenaeum Core Application

If you are using the Athenaeum Core Application, then run the following command to publish assets:

php {your-cli-app} vendor:publish-all