for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Integrations\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class IntegrationResource extends JsonResource
{
public $with = [
'success' => true
];
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
return [
'token' => $this->token,
'created_at' => (string) $this->created_at,
'updated_at' => (string) $this->updated_at
}