Skip to content

Instantly share code, notes, and snippets.

@ashoaib
Created July 23, 2018 12:53
Show Gist options
  • Save ashoaib/c90c73e06ff9b6381f851e3db5e14d2f to your computer and use it in GitHub Desktop.
Save ashoaib/c90c73e06ff9b6381f851e3db5e14d2f to your computer and use it in GitHub Desktop.
Defining a Chef resource
<?php
namespace App\Resources\Order;
use \Gousto\Requesto\Model;
/**
* Class Order
*
* @package App\Resources\Order
*/
class Order extends Model
{
/**
* @var string
*
* The microservice where the resource resides.
*/
protected $service = 'orders';
/**
* @var string
*
* The resource endpoint.
*/
protected $resource = 'orders';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment