Logo
Explore Help
Register Sign In
matt/opnform-host-nginx
1
0
Fork 0
You've already forked opnform-host-nginx
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
2a3aad6c62e58768b23cd23c4b4bd6e3808ce7a9
opnform-host-nginx/app/Http/Resources/Zapier/FormResource.php

20 lines
360 B
PHP
Raw Normal View History

Zapier integration (#491) * create zapier app * install sanctum * move OAuthProviderController * make `api-external` middleware * add zapier endpoints * add tests * token management * zapier event handler * add policy * use `slug` instead of `id` * wip * check policies * change api prefix to `external` * ui tweaks * validate token abilities * open zapier URL * zapier ui tweaks * update zap * Fix linting * Added sample endpoints + minor UI changes * Run PHP code linter --------- Co-authored-by: Julien Nahum <julien@nahum.net>
2024-08-12 02:14:02 -07:00
<?php
namespace App\Http\Resources\Zapier;
use Illuminate\Http\Resources\Json\JsonResource;
/**
* @property \App\Models\Forms\Form $resource
*/
class FormResource extends JsonResource
{
public function toArray($request)
{
return [
'id' => $this->resource->slug,
'name' => $this->resource->title,
];
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 27ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API