{"id":12324,"date":"2024-01-14T07:00:52","date_gmt":"2024-01-13T22:00:52","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=12324"},"modified":"2024-01-11T03:56:57","modified_gmt":"2024-01-10T18:56:57","slug":"chatgpt-%e3%81%a8-laravel-%e3%81%ae-api-%e3%82%92%e9%80%a3%e6%90%ba%e3%81%95%e3%81%9b%e3%82%8b%ef%bc%88actions-in-gpts%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=12324","title":{"rendered":"ChatGPT \u3068 Laravel \u306e API \u3092\u9023\u643a\u3055\u305b\u308b\uff08Actions in GPTs\uff09"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u8a71\u984c\u306b\u4e8b\u6b20\u304b\u306a\u3044<code>ChatGPT<\/code>\u3067\u3059\u304c\u3001\u3053\u306e\u9593\u306e\u300c<strong>CEO\u3001\u9000\u9663\u3059\u3093\u306e\u3093\u304b\u3044 or \u3044\u3084\u3001\u305b\u3093\u306e\u3093\u304b\u3044\uff08\u5409\u672c\u65b0\u559c\u5287\u98a8\uff09<\/strong>\u300d\u306a\u51fa\u6765\u4e8b\u306e\u5f71\u97ff\u3067\u516c\u958b\u304c\u9045\u308c\u3066\u3044\u305f<code>GPT Store<\/code>\u304c\u516c\u958b\u3055\u308c\u308b\u3068\u3044\u3046\u30cb\u30e5\u30fc\u30b9\u304c\u51fa\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3069\u3046\u3084\u3089\u3053\u308c\u306f\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u72ec\u81ea\u306eGPT\u3092\u3064\u304f\u3063\u3066\u516c\u958b\u3057\u3001\u305d\u3053\u304b\u3089\u53ce\u76ca\u3092\u4e0a\u3052\u3089\u308c\u308b\u3088\u3046\u306b\u3057\u3088\u3046<\/strong><\/p>\n<p>\u3068\u3044\u3046\u76ee\u7684\u3082\u3042\u308b\u3088\u3046\u3067\u3001\u3082\u3057\u305d\u3046\u306a\u3089\u304d\u3063\u3068\u5c02\u9580\u7684\u306a\u30c7\u30fc\u30bf\u3092\u3082\u3063\u3066\u3044\u308b\u4eba\u306f\u81ea\u52d5\u7684\u306a\u30b3\u30f3\u30b5\u30eb\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u3082\u3067\u304d\u308b\u308f\u3051\u3067\u3001\u4f7f\u3044\u65b9\u6b21\u7b2c\u3067\u306f\u3059\u3054\u3044\u3053\u3068\u306b\u306a\u308b\u306e\u304b\u3082\u3068\u611f\u3058\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f\u3053\u306e\u30cb\u30e5\u30fc\u30b9\u3092\u53d7\u3051\u3066<code>Laravel<\/code>\u3067\u4f5c\u3063\u305f<code>API<\/code>\u306b<code>ChatGPT<\/code>\u304b\u3089\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u72ec\u81ea\u306e<code>GPT<\/code>\u3092\u4f5c\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305c\u3072\u4f55\u304b\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\u3002\ud83d\ude04\u2728<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9238 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/06\/no_4.png\" alt=\"\" width=\"318\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/06\/no_4.png 318w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/06\/no_4-298x300.png 298w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/06\/no_4-150x150.png 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/06\/no_4-100x100.png 100w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/>\u300c\u6b63\u6708\u4f11\u307f\u304c\u697d\u3057\u3059\u304e\u3066<br \/>\n\u73fe\u5728\u7a7a\u865a\u611f\u2026\uff08\u30d2\u30e5\u30fc&#8230;\uff09\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 10.x\u3001ChatGPT<\/p>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p><code>Laravel Breeze<\/code>\u306a\u3069\u306e\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u304c\u524d\u63d0\u3067\u3059\u3002<\/p>\n<p>\u203b \u305f\u3060\u3057\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306f\u5f8c\u3067\u7d39\u4ecb\u3059\u308b\u306e\u3067\u4e0d\u8981\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u4eca\u56de\u3082\u697d\u3057\u3093\u3067\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<p><strong>\ud83d\udcdd \u53c2\u8003\u8a18\u4e8b\uff1a<\/strong>\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=10845#i\" target=\"_blank\" rel=\"noopener\">\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u306e\u6e96\u5099\u3092\u3059\u308b<\/a><\/p>\n<h1>Laravel Sanctum \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u307e\u305a\u306f\u3001<code>API<\/code>\u30ad\u30fc\u3092\u4f7f\u3063\u3066<code>Laravel<\/code>\u306e\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<p>\u3082\u3061\u308d\u3093\u6211\u3089\u304c<code>Laravel<\/code>\u3067\u3059\u304b\u3089\u3001\u3053\u306e\u6a5f\u80fd\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3060\u3051\u3067\u7c21\u5358\u306b\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u305d\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u300c<strong>Laravel Sanctum<\/strong>\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>composer require laravel\/sanctum<\/strong><\/pre>\n<\/div>\n<p>\u3059\u308b\u3068\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u306e\u3067\u3001\u7d9a\u3051\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4e2d\u304b\u3089\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092<code>Laravel<\/code>\u5074\u3078\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\uff08\u30b3\u30d4\u30fc\uff09\u3057\u307e\u3059\u3002<\/p>\n<div>\n<pre><strong>php artisan vendor:publish --provider=\"Laravel\\Sanctum\\SanctumServiceProvider\"<\/strong><\/pre>\n<p>\u3053\u308c\u3067\u3001\u30b3\u30f3\u30d5\u30a3\u30b0\u3068\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u30b3\u30d4\u30fc\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306f\u300c<strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30fb\u30c6\u30fc\u30d6\u30eb\u306e\u8a2d\u8a08\u56f3<\/strong>\u300d\u3067\u3059\u306e\u3067\u3001\u3055\u3089\u306b\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<div>\n<pre><strong>php artisan migrate<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c6\u30fc\u30d6\u30eb\u300c<strong>personal_access_tokens<\/strong>\u300d\u304c\u4f5c\u6210\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12326\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_1.png\" alt=\"\" width=\"411\" height=\"377\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_1.png 411w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_1-300x275.png 300w\" sizes=\"auto, (max-width: 411px) 100vw, 411px\" \/><\/p>\n<h1>Enum \u3092\u3064\u304f\u308b<\/h1>\n<p>\u4eca\u56de\u6027\u5225\u306e\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3059\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b<code>Enum<\/code>\uff08\u5217\u6319\u578b\u306e\u30c7\u30fc\u30bf\uff09\u3092\u3064\u304f\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\uff08<code>Enum<\/code>\u306f\u3044\u308d\u3093\u306a\u3068\u3053\u308d\u3067\u4fbf\u5229\u3067\u3059\ud83d\udc4d\uff09<\/p>\n<p><strong>app\/Enums\/Gender.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Enums;<\/strong>\r\n\r\n<strong>enum Gender: string<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    case Male = '\u7537\u6027';<\/strong>\r\n<strong>    case Female = '\u5973\u6027';<\/strong>\r\n<strong>    case Other = '\u305d\u306e\u4ed6';<\/strong>\r\n<strong>    case None = '\u8a72\u5f53\u306a\u3057';<\/strong>\r\n\r\n<strong>    public static function values()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return array_column(self::cases(), 'value');<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<p>\u306a\u304a\u3001<code>Gender::values();<\/code>\u3068\u3059\u308b\u3068\u3001\u300c\u7537\u6027\u300d\u300c\u5973\u6027\u300d\u300c\u305d\u306e\u4ed6\u300d\u300c\u8a72\u5f53\u306a\u3057\u300d\u3092\u914d\u5217\u3067\u53d7\u3051\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div>\n<h1>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u3064\u304f\u308b<\/h1>\n<p>\u4eca\u56de\u306f\u30e6\u30fc\u30b6\u30fc\u691c\u7d22\u3059\u308b\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\uff08<code>URL<\/code>\uff09\u3092\u3064\u304f\u3063\u3066\u3001\u305d\u308c\u3092<code>ChatGPT<\/code>\u304b\u3089\u547c\u3073\u51fa\u3059\u3088\u3046\u306b\u3057\u307e\u3059\u304c\u3001\u73fe\u72b6\u3067\u306f\u60c5\u5831\u304c\u5c11\u3059\u304e\u308b\u306e\u3067\u300c<strong>\u4f4f\u6240<\/strong>\u300d\u3084\u300c<strong>\u6027\u5225<\/strong>\u300d\u3001\u300c<strong>\u96fb\u8a71\u756a\u53f7<\/strong>\u300d\u3082\u30c6\u30fc\u30d6\u30eb\u306b\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:migration add_to_additional_columns_to_users<\/strong><\/pre>\n<div>\n<p>\u3059\u308b\u3068\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30fb\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>database\/migrations\/2024_01_09_193911_add_to_additional_columns_to_users.php<\/strong><\/p>\n<div>\n<pre>&lt;?php\r\n\r\nuse Illuminate\\Database\\Migrations\\Migration;\r\nuse Illuminate\\Database\\Schema\\Blueprint;\r\nuse Illuminate\\Support\\Facades\\Schema;\r\n\r\nreturn new class extends Migration\r\n{\r\n    \/**\r\n     * Run the migrations.\r\n     *\/\r\n    public function up(): void\r\n    {\r\n        <strong>Schema::table('users', function (Blueprint $table) {<\/strong>\r\n<strong>            $table-&gt;string('address')-&gt;after('password');<\/strong>\r\n<strong>            $table-&gt;string('phone')-&gt;after('address');<\/strong>\r\n<strong>            $table-&gt;string('gender')-&gt;after('phone');<\/strong>\r\n<strong>        });<\/strong>\r\n    }\r\n\r\n    \/**\r\n     * Reverse the migrations.\r\n     *\/\r\n    public function down(): void\r\n    {\r\n        <strong>Schema::table('users', function (Blueprint $table) {<\/strong>\r\n<strong>            $table-&gt;dropColumn('address');<\/strong>\r\n<strong>            $table-&gt;dropColumn('phone');<\/strong>\r\n<strong>            $table-&gt;dropColumn('gender');<\/strong>\r\n<strong>        });<\/strong>\r\n    }\r\n};<\/pre>\n<p>\u6b21\u306b\u3001\u8ffd\u52a0\u3055\u308c\u305f\u30ab\u30e9\u30e0\u306b\u3082\u30c7\u30fc\u30bf\u304c\u5165\u308b\u3088\u3046\u306b<code>UserFactory<\/code>\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>database\/factories\/UserFactory.php<\/strong><\/p>\n<div>\n<pre>&lt;?php\r\n\r\nnamespace Database\\Factories;\r\n\r\n<strong>use App\\Enums\\Gender;<\/strong>\r\nuse Illuminate\\Database\\Eloquent\\Factories\\Factory;\r\n<strong>use Illuminate\\Support\\Arr;<\/strong>\r\nuse Illuminate\\Support\\Facades\\Hash;\r\nuse Illuminate\\Support\\Str;\r\n\r\n\/**\r\n * @extends \\Illuminate\\Database\\Eloquent\\Factories\\Factory&lt;\\App\\Models\\User&gt;\r\n *\/\r\nclass UserFactory extends Factory\r\n{\r\n    \/\/ \u7701\u7565\r\n\r\n    public function definition(): array\r\n    {\r\n        return [\r\n            'name' =&gt; fake()-&gt;name(),\r\n            'email' =&gt; fake()-&gt;unique()-&gt;safeEmail(),\r\n            'email_verified_at' =&gt; now(),\r\n            'password' =&gt; static::$password ??= Hash::make('password'),\r\n            'remember_token' =&gt; Str::random(10),\r\n\r\n            <strong>\/\/ \u3053\u3053\u304b\u3089\u8ffd\u52a0\u3057\u307e\u3057\u305f<\/strong>\r\n<strong>            'address' =&gt; fake()-&gt;address(),<\/strong>\r\n<strong>            'phone' =&gt; fake()-&gt;phoneNumber(),<\/strong>\r\n<strong>            'gender' =&gt; Arr::random(Gender::values())<\/strong>\r\n        ];\r\n    }\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<\/div>\n<div>\n<p>\u306a\u304a\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306f\u65e5\u672c\u5411\u3051\u306b\u306a\u308b\u3088\u3046\u306b\u5fd8\u308c\u305a\u30b3\u30f3\u30d5\u30a3\u30b0\u8a2d\u5b9a\u3082\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>config\/app.php<\/strong><\/p>\n<div>\n<pre>\/\/ \u7701\u7565\r\n\r\n<strong>'faker_locale' =&gt; 'ja_JP',<\/strong>\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<p>\u5f8c\u306f\u3001<code>DatabaseSeeder<\/code>\u306e\u521d\u671f\u72b6\u614b\u3067\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u308b\u30b3\u30fc\u30c9\u3092\u6709\u52b9\u306b\u3057\u3066\u4ef6\u6570\u3092<code>50<\/code>\u3078\u5909\u66f4\u3057\u3001\u3055\u3089\u306b\u6700\u521d\u306e\uff11\u4eba\u3060\u3051\u306f<code>API<\/code>\u30c8\u30fc\u30af\u30f3\u304c\u81ea\u52d5\u7684\u306b\u4f5c\u6210\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>database\/seeders\/DatabaseSeeder.php<\/strong><\/p>\n<div>\n<div>\n<pre>\/\/\u3000\u7701\u7565\r\n\r\npublic function run(): void\r\n{\r\n    <strong>\\App\\Models\\User::factory(50)-&gt;create(); \/\/ \ud83d\udc48 \u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092 50\u4ef6\u8ffd\u52a0<\/strong>\r\n\r\n<strong>    $token = \\App\\Models\\User::find(1)-&gt;createToken('for_chatgpt'); \/\/ \ud83d\udc48 API \u30c8\u30fc\u30af\u30f3\u4f5c\u6210<\/strong>\r\n<strong>    dump($token-&gt;plainTextToken); \/\/ \ud83d\udc48 API \u30c8\u30fc\u30af\u30f3\u304c\u8868\u793a\u3055\u308c\u307e\u3059<\/strong>\r\n\r\n    \/\/ \\App\\Models\\User::factory()-&gt;create([\r\n    \/\/     'name' =&gt; 'Test User',\r\n    \/\/     'email' =&gt; 'test@example.com',\r\n    \/\/ ]);\r\n}\r\n\r\n\/\/\u3000\u7701\u7565<\/pre>\n<\/div>\n<\/div>\n<p>\u3053\u308c\u3067\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u6e96\u5099\u306f\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u969b\u306b\u30c7\u30fc\u30bf\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<div>\n<pre><strong>php artisan migrate:fresh --seed<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>API<\/code>\u30c8\u30fc\u30af\u30f3\u304c\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u4e2d\u306b\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\uff08\u6ce8\u610f\uff1a \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4e2d\u8eab\u3068\u306f\u9055\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u5fc5\u305a\u3053\u3053\u3067\u53d6\u5f97\u3057\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\n<p>\u305d\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u30c6\u30fc\u30d6\u30eb\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12347\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_19.png\" alt=\"\" width=\"575\" height=\"500\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_19.png 575w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_19-300x261.png 300w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/p>\n<h1>OpenAPI\uff08Swagger\uff09\u306b\u5bfe\u5fdc\u3055\u305b\u308b<\/h1>\n<p><code>ChatGPT<\/code>\u3067\u72ec\u81ea\u306e<code>GPTs<\/code>\u3092\u3064\u304f\u308b\u305f\u3081\u306b\u306f\u300c<strong>\u3053\u3046\u3044\u3046\u4ed5\u69d8\u306eAPI\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u306d<\/strong>\u300d\u3068\u6559\u3048\u3066\u4e0a\u3052\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<p>\u3082\u3061\u308d\u3093\u624b\u4f5c\u696d\u3067\u3084\u3063\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001<code>GPTs<\/code>\u306e\u8a2d\u5b9a\u306b\u306f\u3053\u306e\u4ed5\u69d8\uff08<code>Schema<\/code>\uff09\u3092\u767b\u9332\u3067\u304d\u308b\u306e\u3067\u3001<code>Swagger-PHP<\/code>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066<strong>API\u306e\u4ed5\u69d8\u3092\u81ea\u52d5\u7684\u306b\u30a2\u30d7\u30c8\u30d7\u30c3\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/strong><\/p>\n<p>\u3067\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>composer require zircote\/swagger-php<\/strong><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3089\u3001<code>API<\/code>\u306e\u5168\u4f53\u8a2d\u5b9a\u3092\u30bb\u30c3\u30c8\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<div>\n<div>\n<pre>&lt;?php\r\n\r\nnamespace App\\Providers;\r\n\r\nuse Illuminate\\Support\\ServiceProvider;\r\nuse OpenApi\\Attributes as OA;\r\n\r\n<strong>#[OA\\OpenApi(<\/strong>\r\n<strong>    info: new OA\\Info(<\/strong>\r\n<strong>        version: '1.0.0',<\/strong>\r\n<strong>        description: 'API\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8',<\/strong>\r\n<strong>        title: 'API by Laravel Sanctum',<\/strong>\r\n<strong>    ),<\/strong>\r\n<strong>    servers: [<\/strong>\r\n<strong>        new OA\\Server(<\/strong>\r\n<strong>            url: 'https:\/\/example.com',<\/strong>\r\n<strong>        ),<\/strong>\r\n<strong>    ],<\/strong>\r\n<strong>)]<\/strong>\r\nclass AppServiceProvider extends ServiceProvider\r\n{\r\n    \/\/ \u7701\u7565\r\n}<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u26a0 \u3054\u6ce8\u610f\uff1a<\/strong> \u306a\u304a\u3001\u300c<strong>https:\/\/example.com<\/strong>\u300d\u306e\u90e8\u5206\u306f\u3054\u81ea\u8eab\u306e\u30b5\u30fc\u30d0\u30fc\u74b0\u5883\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u308c\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u300c<strong>openapi.yaml<\/strong>\u300d\u304c\u4f5c\u6210\u3055\u308c\u3001\u3053\u306e\u4e2d\u306b<code>API<\/code>\u306e\u4ed5\u69d8\u3092\u307e\u3068\u3081\u3066\u304f\u308c\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u3002\uff08\u3053\u3046\u3044\u3046\u4ed5\u7d44\u307f\u3092\u8003\u3048\u308b\u4eba\u3063\u3066\u5c0a\u656c\u3057\u307e\u3059\u306d\ud83d\ude04\uff09<\/p>\n<div>\n<pre><strong>.\/vendor\/bin\/openapi app -o openapi.yaml<\/strong><\/pre>\n<\/div>\n<h1>\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u3092\u691c\u7d22\u3067\u304d\u308b\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php atisan make:controller Api\\\\UserController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<p><strong>app\/Http\/Controllers\/Api\/UserController.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Http\\Controllers\\Api;<\/strong>\r\n\r\n<strong>use App\\Enums\\Gender;<\/strong>\r\n<strong>use App\\Http\\Controllers\\Controller;<\/strong>\r\n<strong>use App\\Models\\User;<\/strong>\r\n<strong>use Illuminate\\Http\\Request;<\/strong>\r\n<strong>use OpenApi\\Attributes as OA;<\/strong>\r\n\r\n<strong>class UserController extends Controller<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    #[OA\\Get(<\/strong>\r\n<strong>        path: '\/api\/user',\r\n        description: '\u30e6\u30fc\u30b6\u30fc\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b',<\/strong>\r\n<strong>        tags: ['User'],<\/strong>\r\n<strong>        parameters: [<\/strong>\r\n<strong>            new OA\\Parameter(name: 'name', description: '\u691c\u7d22\u3059\u308b\u540d\u524d', in: 'query', required: false, schema: new OA\\Schema(type: 'string')),<\/strong>\r\n<strong>            new OA\\Parameter(name: 'email', description: '\u691c\u7d22\u3059\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9', in: 'query', required: false, schema: new OA\\Schema(type: 'string')),<\/strong>\r\n<strong>            new OA\\Parameter(name: 'address', description: '\u691c\u7d22\u3059\u308b\u4f4f\u6240', in: 'query', required: false, schema: new OA\\Schema(type: 'string')),<\/strong>\r\n<strong>            new OA\\Parameter(name: 'phone', description: '\u691c\u7d22\u3059\u308b\u96fb\u8a71\u756a\u53f7', in: 'query', required: false, schema: new OA\\Schema(type: 'string')),<\/strong>\r\n<strong>            new OA\\Parameter(name: 'gender', description: '\u691c\u7d22\u3059\u308b\u6027\u5225', in: 'query', required: false, schema: new OA\\Schema(type: 'string', enum: Gender::class)),<\/strong>\r\n<strong>        ],<\/strong>\r\n<strong>        responses: [<\/strong>\r\n<strong>            new OA\\Response(response: 200, description: 'AOK'),<\/strong>\r\n<strong>            new OA\\Response(response: 400, description: 'Bad Request'),<\/strong>\r\n<strong>            new OA\\Response(response: 401, description: 'Not allowed'),<\/strong>\r\n<strong>        ]<\/strong>\r\n<strong>    )]<\/strong>\r\n<strong>    public function index(Request $request)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return User::query()<\/strong>\r\n<strong>            -&gt;when($request-&gt;name, function ($query, $name) {<\/strong>\r\n\r\n<strong>                $query-&gt;where('name', 'LIKE', '%' . $name . '%');<\/strong>\r\n\r\n<strong>            })<\/strong>\r\n<strong>            -&gt;when($request-&gt;email, function ($query, $email) {<\/strong>\r\n\r\n<strong>                $query-&gt;where('email', 'LIKE', '%' . $email . '%');<\/strong>\r\n\r\n<strong>            })<\/strong>\r\n<strong>            -&gt;when($request-&gt;address, function ($query, $address) {<\/strong>\r\n\r\n<strong>                $query-&gt;where('address', 'LIKE', '%' . $address . '%');<\/strong>\r\n\r\n<strong>            })<\/strong>\r\n<strong>            -&gt;when($request-&gt;phone, function ($query, $phone) {<\/strong>\r\n\r\n<strong>                $query-&gt;where('phone', 'LIKE', '%' . $phone . '%');<\/strong>\r\n\r\n<strong>            })<\/strong>\r\n<strong>            -&gt;when($request-&gt;gender, function($query, $gender) {<\/strong>\r\n\r\n<strong>                $valid_genders = Gender::values();<\/strong>\r\n\r\n<strong>                if(! in_array($gender, $valid_genders, true)) {<\/strong>\r\n\r\n<strong>                    abort(400, 'Bad Request');<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>                $query-&gt;whereIn('gender', $valid_genders);<\/strong>\r\n\r\n<strong>            })<\/strong>\r\n<strong>            -&gt;get();<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<p>\u3082\u3057\u304b\u3059\u308b\u3068\u3061\u3087\u3063\u3068\u898b\u6163\u308c\u306a\u3044\u30b3\u30fc\u30c9\u304c\u5165\u3063\u3066\u3044\u308b\u3068\u601d\u3063\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3053\u308c\u304c<code>Attributes<\/code>\u3068\u547c\u3070\u308c\u308b\u3001\u30b7\u30f3\u30d7\u30eb\u306b\u8a00\u3046\u3068\u300c<strong>\u8ffd\u52a0\u60c5\u5831<\/strong>\u300d\u306e\u3088\u3046\u306a\u30d6\u30ed\u30c3\u30af\u3067\u3001<code>OpenAPI<\/code>\u306f\u3053\u3053\u3092\u898b\u3066<code>API<\/code>\u306e\u4ed5\u69d8\u3092\u307e\u3068\u3081\u3066\u304f\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u3053\u3053\u3067\u306f\u300c<strong>\u3069\u3093\u306aURL\u3067\u3001\u3069\u3093\u306a\u691c\u7d22\u30ad\u30fc\u30ef\u30fc\u30c9\u304c\u5165\u3063\u3066\u304d\u3066\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u306f\u3053\u3046\u3067\u3059<\/strong>\u300d\u307f\u305f\u3044\u306a\u3053\u3068\u304c\u66f8\u304b\u308c\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<h1>Postman\u3067\u8a66\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001<code>OpenAPI<\/code>\u3067<code>yaml<\/code>\u3092\u51fa\u529b\u3059\u308b\u524d\u306b<code>API<\/code>\u81ea\u4f53\u304c\u3046\u307e\u304f\u52d5\u3044\u3066\u3044\u308b\u304b<code>Postman<\/code>\u3067\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code>Postman<\/code>\u306f\u7279\u306b<code>API<\/code>\u3092\u3064\u304f\u308b\u5834\u5408\u306b\u306f\u3068\u3066\u3082\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3067\u7121\u6599\u30d7\u30e9\u30f3\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u307e\u305a\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3082\u3046\u4e00\u5ea6\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u521d\u671f\u5316\u3057\u307e\u3059\u3002<\/p>\n<div>\n<pre><strong>php artisan migrate:fresh --seed<\/strong><\/pre>\n<\/div>\n<p>\u3059\u308b\u3068\u3001<code>API<\/code>\u30c8\u30fc\u30af\u30f3\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3053\u308c\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3067\u306f\u3001<code>Postman<\/code>\u3092\u958b\u3044\u3066\u30bf\u30d6\u3092\u8ffd\u52a0\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306bURL\u3092\u5165\u529b\u3057\u3001\u300c<strong>Authorization \uff1e Bearer Token<\/strong>\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12325\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_2.png\" alt=\"\" width=\"847\" height=\"455\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_2.png 847w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_2-300x161.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_2-768x413.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u30c8\u30fc\u30af\u30f3\u3092\u3044\u308c\u308b\u5165\u529b\u30dc\u30c3\u30af\u30b9\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u3053\u3053\u3078\u5148\u307b\u3069\u306eAPI\u30c8\u30fc\u30af\u30f3\u3092\u30bb\u30c3\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12328\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_3.png\" alt=\"\" width=\"418\" height=\"132\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_3.png 418w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_3-300x95.png 300w\" sizes=\"auto, (max-width: 418px) 100vw, 418px\" \/><\/p>\n<p>\u3053\u308c\u3067\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059\uff01<br \/>\n<code>Send<\/code>\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12327\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_4.png\" alt=\"\" width=\"134\" height=\"66\" \/><\/p>\n<p>\u3082\u3057\u4ee5\u4e0b\u306e\u90e8\u5206\u306b\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12329\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_5.png\" alt=\"\" width=\"640\" height=\"519\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_5.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_5-300x243.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<h1>API \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u751f\u6210\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001\u3072\u3068\u3064\u5bc4\u308a\u9053\u3057\u307e\u3057\u305f\u304c\u3053\u306e\u72b6\u614b\u3067<code>API<\/code>\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\uff08\u4ed5\u69d8\uff09\u3092\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>.\/vendor\/bin\/openapi app -o openapi.yaml<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><strong>openapi.yaml<\/strong><\/p>\n<div>\n<pre><strong>openapi: 3.0.0<\/strong>\r\n<strong>info:<\/strong>\r\n<strong>  title: 'API by Laravel Sanctum'<\/strong>\r\n<strong>  description: API\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/strong>\r\n<strong>  version: 1.0.0<\/strong>\r\n<strong>servers:<\/strong>\r\n<strong>  -<\/strong>\r\n<strong>    url: 'https:\/\/example.com'<\/strong>\r\n<strong>paths:<\/strong>\r\n<strong>  \/api\/user:<\/strong>\r\n<strong>    get:<\/strong>\r\n<strong>      tags:<\/strong>\r\n<strong>        - User<\/strong>\r\n<strong>      description: \u30e6\u30fc\u30b6\u30fc\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b<\/strong>\r\n<strong>      operationId: ef3192335324c07faff67807a2e8a2f8<\/strong>\r\n<strong>      parameters:<\/strong>\r\n<strong>        -<\/strong>\r\n<strong>          name: name<\/strong>\r\n<strong>          in: query<\/strong>\r\n<strong>          description: \u691c\u7d22\u3059\u308b\u540d\u524d<\/strong>\r\n<strong>          required: false<\/strong>\r\n<strong>          schema:<\/strong>\r\n<strong>            type: string<\/strong>\r\n<strong>        -<\/strong>\r\n<strong>          name: email<\/strong>\r\n<strong>          in: query<\/strong>\r\n<strong>          description: \u691c\u7d22\u3059\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/strong>\r\n<strong>          required: false<\/strong>\r\n<strong>          schema:<\/strong>\r\n<strong>            type: string<\/strong>\r\n<strong>        -<\/strong>\r\n<strong>          name: address<\/strong>\r\n<strong>          in: query<\/strong>\r\n<strong>          description: \u691c\u7d22\u3059\u308b\u4f4f\u6240<\/strong>\r\n<strong>          required: false<\/strong>\r\n<strong>          schema:<\/strong>\r\n<strong>            type: string<\/strong>\r\n<strong>        -<\/strong>\r\n<strong>          name: phone<\/strong>\r\n<strong>          in: query<\/strong>\r\n<strong>          description: \u691c\u7d22\u3059\u308b\u96fb\u8a71\u756a\u53f7<\/strong>\r\n<strong>          required: false<\/strong>\r\n<strong>          schema:<\/strong>\r\n<strong>            type: string<\/strong>\r\n<strong>        -<\/strong>\r\n<strong>          name: gender<\/strong>\r\n<strong>          in: query<\/strong>\r\n<strong>          description: \u691c\u7d22\u3059\u308b\u6027\u5225<\/strong>\r\n<strong>          required: false<\/strong>\r\n<strong>          schema:<\/strong>\r\n<strong>            type: string<\/strong>\r\n<strong>            enum:<\/strong>\r\n<strong>              - \u7537\u6027<\/strong>\r\n<strong>              - \u5973\u6027<\/strong>\r\n<strong>              - \u305d\u306e\u4ed6<\/strong>\r\n<strong>              - \u8a72\u5f53\u306a\u3057<\/strong>\r\n<strong>      responses:<\/strong>\r\n<strong>        '200':<\/strong>\r\n<strong>          description: AOK<\/strong>\r\n<strong>        '400':<\/strong>\r\n<strong>          description: 'Bad Request'<\/strong>\r\n<strong>        '401':<\/strong>\r\n<strong>          description: 'Not allowed'<\/strong><\/pre>\n<\/div>\n<\/div>\n<h1>GPTs \u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u3084\u3063\u3068\u672c\u984c\u306b\u305f\u3069\u308a\u7740\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u3067\u3064\u304f\u3063\u305f<code>API<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u72ec\u81ea\u306e<code>ChatGPT<\/code>\uff08\uff1d<code>My Gpts<\/code>\uff09\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a<code>ChatGPT<\/code>\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u30da\u30fc\u30b8\u5de6\u5074\u30e1\u30cb\u30e5\u30fc\u306e\u300c<strong>Explore<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12332\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_6.png\" alt=\"\" width=\"259\" height=\"162\" \/><\/p>\n<p>\u30da\u30fc\u30b8\u79fb\u52d5\u3059\u308b\u306e\u3067\u3001\u300c<strong>Create a GPT<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12333\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_7.png\" alt=\"\" width=\"476\" height=\"128\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_7.png 476w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_7-300x81.png 300w\" sizes=\"auto, (max-width: 476px) 100vw, 476px\" \/><\/p>\n<p>\u3055\u3089\u306b\u30da\u30fc\u30b8\u79fb\u52d5\u3057\u305f\u5148\u306b\u3042\u308b\u300c<strong>Configure<\/strong>\u300d\u30bf\u30d6\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12334\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_8.png\" alt=\"\" width=\"640\" height=\"198\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_8.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_8-300x93.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u308f\u304b\u308a\u3084\u3059\u3044\u3088\u3046\u306b\u540d\u524d\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12335\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_9.png\" alt=\"\" width=\"329\" height=\"84\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_9.png 329w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_9-300x77.png 300w\" sizes=\"auto, (max-width: 329px) 100vw, 329px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\u30da\u30fc\u30b8\u4e0b\u90e8\u306b\u3042\u308b\u300c<strong>Create new action<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12336\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_10.png\" alt=\"\" width=\"175\" height=\"99\" \/><\/p>\n<p>\u8a8d\u8a3c\u306e\u30e2\u30fc\u30c0\u30eb\u304c\u958b\u304f\u306e\u3067\u3001None\u306e\u90e8\u5206\u3092\u30af\u30ea\u30c3\u30af\u3057\u300c<strong>API Key<\/strong>\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12337\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_11.png\" alt=\"\" width=\"300\" height=\"88\" \/><\/p>\n<p>\u30d5\u30a9\u30fc\u30e0\u304c\u5909\u5316\u3059\u308b\u306e\u3067\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u4f5c\u3063\u305f\u3068\u304d\u306b\u53d6\u5f97\u3057\u305f<code>API<\/code>\u30ad\u30fc\uff08<code>API<\/code>\u30c8\u30fc\u30af\u30f3\uff09\u3092\u5165\u529b\u3001\u3055\u3089\u306b\u300c<strong>Bearer<\/strong>\u300d\u3092\u9078\u629e\u5f8c\u3001\u300c<strong>Save<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12338\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_12.png\" alt=\"\" width=\"438\" height=\"340\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_12.png 438w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_12-300x233.png 300w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><\/p>\n<p>\u7d9a\u3044\u3066\u3001\u300c<strong>Schema<\/strong>\u300d\u306b\u5148\u307b\u3069\u30b3\u30de\u30f3\u30c9\u3067\u751f\u6210\u3057\u305f<code>openapi.yaml<\/code>\u306e\u4e2d\u8eab\u3092\u30b3\u30d4\u30da\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12339\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_13.png\" alt=\"\" width=\"640\" height=\"348\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_13.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_13-300x163.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u3059\u3050\u4e0b\u306b\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u300c<strong>Test<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3046\u307e\u304f\u3044\u304f\u304b\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12340\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_14.png\" alt=\"\" width=\"640\" height=\"94\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_14.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_14-300x44.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001<code>GPT<\/code>\u304c\u30da\u30fc\u30b8\u53f3\u5074\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u793a\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u300c<strong>Allow<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066API\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12341\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_15.png\" alt=\"\" width=\"611\" height=\"259\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_15.png 611w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_15-300x127.png 300w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/p>\n<p>\u203b \u6bce\u56de\u8a31\u53ef\u3059\u308b\u306e\u304c\u3081\u3093\u3069\u3046\u3067\u3057\u305f\u3089\u3001\u3059\u3050\u6a2a\u306b\u3042\u308b\u300c<strong>Always allow for *****<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8fd4\u3057\u3066\u304f\u308c\u305f\u3089\u30a2\u30af\u30bb\u30b9\u306f\u6210\u529f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12342\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_16.png\" alt=\"\" width=\"640\" height=\"309\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_16.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_16-300x145.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u5185\u5bb9\u3068\u3057\u3066\u306f\u300c<strong>John \u3067\u691c\u7d22\u3057\u3066\u3082\u30c7\u30fc\u30bf\u304c\u306a\u304b\u3063\u305f\u308f\u2026\ud83d\udca6<\/strong>\u300d\u3068\u8a00\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u3082\u3061\u308d\u3093\u300c<strong>John<\/strong>\u300d\u306b\u8a72\u5f53\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u306a\u3044\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5b58\u5728\u3057\u3066\u3044\u308b\u4eba\u306e\u540d\u524d\u3067\u691c\u7d22\u3057\u3066\u3082\u3089\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<div>\n<pre><strong>\u3058\u3083\u3042\u3001\u300cJohn\u300d\u3058\u3083\u306a\u304f\u3066\u300c\u9234\u6728\u300d\u3067\u691c\u7d22\u3057\u3066\u307f\u3066\u3002<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u8fd4\u3057\u3066\u304f\u308c\u307e\u3057\u305f\u3002<\/p>\n<pre><strong>\u3010ChatGPT\u306e\u56de\u7b54\u3011\r\n\r\n\u691c\u7d22\u7d50\u679c\u306b\u3088\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u306f\u300c\u9234\u6728 \u5145\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u8a73\u7d30\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a\r\n\r\n\u540d\u524d: \u9234\u6728 \u5145\r\n\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9: zidaka@example.org\r\n\u4f4f\u6240: 3859110 \u5e83\u5cf6\u770c\u6f5f\u5e02\u5357\u533a\u4e2d\u6751\u753a\u4e95\u4e0a10-9-3 \u30cf\u30a4\u30c4\u7530\u8fba105\u53f7\r\n\u96fb\u8a71\u756a\u53f7: 0743-04-3185\r\n\u6027\u5225: \u7537\u6027\r\n\u3053\u306e\u60c5\u5831\u304c\u304a\u5f79\u306b\u7acb\u3066\u3070\u5e78\u3044\u3067\u3059\u3002\u4ed6\u306b\u3082\u4f55\u304b\u304a\u624b\u4f1d\u3044\u3067\u304d\u308b\u3053\u3068\u304c\u3042\u308c\u3070\u3001\u9060\u616e\u306a\u304f\u304a\u77e5\u3089\u305b\u304f\u3060\u3055\u3044\u3002<\/strong><\/pre>\n<\/div>\n<p>\u3067\u306f\u3001\u3046\u307e\u304f\u3044\u3063\u305f\u306e\u3067\u3044\u3064\u3067\u3082\u4f7f\u3048\u308b\u3088\u3046\u306b\u4fdd\u5b58\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\uff08\u4eca\u56de\u306f<code>Only me<\/code>\uff08\uff1d\u81ea\u5206\u3060\u3051\u4f7f\u3048\u308b\uff09\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12343\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/01\/chatgpt_actions_with_laravel_17.png\" alt=\"\" width=\"268\" height=\"246\" \/><\/p>\n<p>\u4fdd\u5b58\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u4eca\u3064\u304f\u3063\u305fGPT\u306e\u30da\u30fc\u30b8\u306b\u79fb\u52d5\u3059\u308b\u306e\u3067\u305d\u306e\u307e\u307e\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u308c\u3067\u4f5c\u696d\u306f\u5b8c\u4e86\u3067\u3059\u2757<br \/>\n\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\u3002\ud83d\ude04\u2728<\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306f\u4ee5\u4e0b\u306e\u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u3067\u3059\u3002<\/p>\n<pre><strong>name: \u5b87\u91ce \u62d3\u771f\r\nemail: bhirokawa@example.net\r\naddress: 4938120  \u5cf6\u6839\u770c\u6c5f\u53e4\u7530\u5e02\u4e2d\u592e\u533a\u6e1a\u753a\u4e95\u4e0a4-5-1\r\nphone: 080-4550-6410\r\ngender: \u5973\u6027\r\n<\/strong><\/pre>\n<p>\u5148\u307b\u3069\u306f\u540d\u524d\u3067\u306e\u691c\u7d22\u3067\u3057\u305f\u306e\u3067\u4eca\u56de\u306f\u96fb\u8a71\u756a\u53f7\u3067\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>\u3010\u30d7\u30ed\u30f3\u30d7\u30c8\u3011\r\n\r\n\u96fb\u8a71\u756a\u53f7\u304c\u300c080-4550-6410\u300d\u306e\u4eba\u306e\u30c7\u30fc\u30bf\u3092\u6559\u3048\u3066<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<pre><strong>\u3010ChatGPT \u306e\u56de\u7b54\u3011<\/strong>\r\n\r\n<strong>\u96fb\u8a71\u756a\u53f7\u300c080-4550-6410\u300d\u306e\u6301\u3061\u4e3b\u306f\u5b87\u91ce \u62d3\u771f\u3055\u3093\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u5b87\u91ce\u3055\u3093\u306e\u8a73\u7d30\u60c5\u5831\u3067\u3059\uff1a\r\n\r\n\u540d\u524d: \u5b87\u91ce \u62d3\u771f\r\n\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9: bhirokawa@example.net\r\n\u4f4f\u6240: 4938120 \u5cf6\u6839\u770c\u6c5f\u53e4\u7530\u5e02\u4e2d\u592e\u533a\u6cb3\u7530\u753a\u4e95\u4e0a4-5-1\r\n\u6027\u5225: \u5973\u6027\r\n\u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210\u65e5: 2024\u5e741\u670810\u65e5\r\n\u3054\u53c2\u8003\u307e\u3067\u306b\u3069\u3046\u305e\u3002<\/strong><\/pre>\n<p>\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\ud83d\ude04\u2728<\/p>\n<p>\u3067\u306f\u3001\u6b21\u306f\u3072\u3068\u308a\u3060\u3051\u3058\u3083\u306a\u304f\u8907\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u898b\u3064\u3051\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3067\u306f\u300c<strong>\u4f4f\u6240\u304c\u5317\u6d77\u9053<\/strong>\u300d\u306b\u306a\u3063\u3066\u3044\u308b\u4eba\u304c\uff13\u4eba\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u805e\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre><strong>\u3010\u30d7\u30ed\u30f3\u30d7\u30c8\u3011\r\n\r\n\u4f4f\u6240\u304c\u5317\u6d77\u9053\u306e\u4eba\u306e\u540d\u524d\u3092\u3059\u3079\u3066\u6559\u3048\u3066<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8fd4\u3057\u3066\u304f\u308c\u307e\u3057\u305f\u3002<\/p>\n<pre><strong>\u3010ChatGPT \u306e\u56de\u7b54\u3011\r\n\r\n\u5317\u6d77\u9053\u306b\u4f4f\u3093\u3067\u3044\u308b\u4eba\u306e\u540d\u524d\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a\r\n\r\n\u4f50\u85e4 \u548c\u4e5f\r\n\u6749\u5c71 \u6d0b\u4ecb\r\n\u5c0f\u6cc9 \u76f4\u4eba\r\n\u3053\u308c\u3089\u306e\u65b9\u3005\u304c\u5317\u6d77\u9053\u306b\u304a\u4f4f\u307e\u3044\u3067\u3059\u3002\r\n<\/strong><\/pre>\n<p>\u203b \u30c7\u30fc\u30bf\u7684\u306b\u3082\u6b63\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3082\u6210\u529f\u3067\u3059\ud83d\ude04\u2728<\/p>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u4ef6\u6570\u3082\u6559\u3048\u3066\u3082\u3089\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>\u3010\u30d7\u30ed\u30f3\u30d7\u30c8\u3011\r\n\r\n\u96fb\u8a71\u756a\u53f7\u306b 080 \u304c\u5165\u3063\u3066\u3044\u308b\u4eba\u306e\u4ef6\u6570\u3092\u6559\u3048\u3066<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u3053\u3046\u56de\u7b54\u3057\u3066\u304f\u308c\u307e\u3057\u305f\u3002<\/p>\n<pre><strong>\u3010ChatGPT \u306e\u56de\u7b54\u3011<\/strong>\r\n\r\n<strong>\u96fb\u8a71\u756a\u53f7\u306b\u300c080\u300d\u304c\u542b\u307e\u308c\u308b\u4eba\u306e\u4ef6\u6570\u306f7\u4ef6\u3067\u3059\u3002\r\n<\/strong><\/pre>\n<p>\u306f\u3044\u2757<br \/>\n\u3059\u3079\u3066\u6210\u529f\u3067\u3059\ud83d\ude04\u2728<\/p>\n<h1>\u3061\u306a\u307f\u306b\uff1a \u5931\u6557\u3059\u308b\u30b1\u30fc\u30b9\u3082\u2026<\/h1>\n<p>\u30c6\u30b9\u30c8\u3067\u306f\u307b\u307c\u3046\u307e\u304f\u51e6\u7406\u3067\u304d\u305f\u306e\u3067\u3059\u304c\u3001\u4f8b\u3048\u3070\u300c<strong>\u7537\u6027\u3068\u3057\u3066\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u4eba\u6570\u3092\u6559\u3048\u3066<\/strong>\u300d\u3068\u805e\u3044\u3066\u307f\u308b\u3068\u6b63\u89e3\u306f17\u4ef6\u3060\u3063\u305f\u306e\u306b\u5bfe\u3057\u3001<code>ChatGPT<\/code>\u3067\u306e\u56de\u7b54\u306f<code>20<\/code>\u4ef6\u3068\u9593\u9055\u3063\u3066\u3044\u307e\u3057\u305f\u3002\uff08\u3082\u3057\u304b\u3059\u308b\u3068\u540d\u524d\u3067\u5224\u5225\u3057\u305f\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\uff09<\/p>\n<p>\u305d\u3053\u3067\u3001\u300c<strong>\u3058\u3083\u3042\u305d\u306e\u540d\u524d\u3092\u5168\u90e8\u6559\u3048\u3066<\/strong>\u300d\u3068\u805e\u3044\u3066\u307f\u308b\u3068\u304d\u3061\u3093\u306817\u4ef6\u3068\u306a\u308b\u306a\u3069\u3001\u300c\u3086\u3089\u304e\u300d\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u304b\u3089\u7cbe\u5ea6\u304c\u3042\u304c\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3082\u3057\u696d\u52d9\u3067\u5229\u7528\u3059\u308b\u3068\u306a\u308b\u3068\u4f7f\u3044\u65b9\u306f\u5c11\u3057\u6c17\u3092\u3064\u3051\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u3084\u3063\u305f\u3088\u3046\u306b\u300c<strong>\u3059\u3067\u306b\u30c7\u30fc\u30bf\u304c\u5b58\u5728\u3057\u3066\u3044\u308c\u3070<\/strong>\u300d\u305d\u308c\u3092<code>ChatGPT<\/code>\u306b\u7d10\u4ed8\u3051\u308b\u3053\u3068\u3067\u3001\u3044\u3064\u3067\u3082\u81ea\u793e\u306e\u30c7\u30fc\u30bf\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u904e\u53bb\u306b\u3042\u3063\u305f\u55b6\u696d\u30ce\u30a6\u30cf\u30a6\u304c\u84c4\u7a4d\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u65b0\u4eba\u304c<code>ChatGPT<\/code>\u306b\u300c<strong>\u304a\u5ba2\u69d8\u304c\u25cf\u25cf\u306a\u96f0\u56f2\u6c17\u306e\u3068\u304d\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f<\/strong>\u300d\u3084\u300c<strong>\u25cf\u25cf\u306a\u5834\u5408\u306e\u53d7\u6ce8\u78ba\u5ea6\u306f\u3069\u306e\u304f\u3089\u3044\uff1f<\/strong>\u300d\u306a\u3069\u306e\u3088\u3046\u306b\u793e\u54e1\u6559\u80b2\u306b\u3082\u3064\u306a\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305f\u3001\u904e\u53bb\u306b\u767a\u751f\u3057\u305f\u91cd\u5927\u4e8b\u6545\u306a\u3069\u3092\u30c7\u30fc\u30bf\u5316\u3057\u3066\u304a\u3051\u3070\u300c<strong>\u25cf\u25cf\u306a\u6761\u4ef6\u3067\u5b9f\u884c\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u304c\u5927\u4e08\u592b\u3067\u3057\u3087\u3046\u304b\uff1f<\/strong>\u300d\u306a\u3069\u306e\u3088\u3046\u306a\u8cea\u554f\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u4e8b\u524d\u306b\u4e8b\u6545\u3092\u9632\u6b62\u3059\u308b\u3053\u3068\u306b\u3064\u306a\u304c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u3053\u308c\u307e\u3067\u306f\u300c<strong>\u691c\u7d22\u30ce\u30a6\u30cf\u30a6<\/strong>\u300d\u3092\u3082\u3063\u3066\u3044\u308b\u4eba\u3067\u306a\u3044\u3068\u6b63\u3057\u3044\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u306b\u304f\u304b\u3063\u305f\u3067\u3059\u304c\u3001\u3053\u308c\u3092<code>ChatGPT<\/code>\u304c\u5909\u308f\u3063\u3066\u304f\u308c\u308b\u3088\u3046\u306a\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u305d\u3046\u3044\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u3092\u3054\u6e96\u5099\u3055\u308c\u305f\u3044\u5834\u5408\u306f\u3044\u3064\u3067\u3082\u304a\u6c17\u8efd\u306b\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\u3002\ud83d\ude04\u2728<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f<code>Laravel<\/code>\u3067\u4f5c\u3063\u305f<code>API<\/code>\u306b<code>GPTs<\/code>\u3092\u7d10\u4ed8\u3051\u3066\u30e6\u30fc\u30b6\u30fc\u306e\u691c\u7d22\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u304a\u305d\u3089\u304f\u3088\u308a\u7cbe\u5ea6\u304c\u9ad8\u3044\u7d50\u679c\u304c\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u3088\u308a\u6539\u826f\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3093\u3067\u3057\u3087\u3046\u304c\u3001<code>IT<\/code>\u30ea\u30c6\u30e9\u30b7\u30fc\u304c\u6bd4\u8f03\u7684\u4f4e\u3044\u65b9\u3067\u3082\u3001\u6587\u5b57\u304c\u5165\u529b\u3067\u304d\u308c\u3070\u3088\u308a\u6709\u76ca\u306a\u60c5\u5831\u3092\u3068\u308a\u3060\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u3064\u307e\u308a\u30b9\u30de\u30db\u304c\u4f7f\u3048\u308c\u3070OK\u3063\u3066\u3053\u3068\u3067\u3059\u306d\uff09<\/p>\n<p>\u4eca\u56de\u306f\u30b7\u30f3\u30d7\u30eb\u306a\u30e6\u30fc\u30b6\u30fc\u691c\u7d22\u3067\u3057\u305f\u304c\u3001\u3082\u3063\u3068\u4ed6\u306b\u3082\u6d3b\u7528\u6cd5\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u697d\u3057\u3093\u3067\u3084\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2173 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png\" alt=\"\" width=\"300\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24-281x300.png 281w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>\u300c\u3064\u3093\u304f\u3055\u3093\u304c\u51fa\u3057\u305f\u672c<br \/>\n\u8aad\u3093\u3067\u307e\u3059\ud83d\udc4d\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u8a71\u984c\u306b\u4e8b\u6b20\u304b\u306a\u3044ChatGPT\u3067\u3059\u304c\u3001\u3053\u306e\u9593\u306e\u300cCEO\u3001\u9000\u9663\u3059\u3093\u306e\u3093\u304b\u3044 or \u3044\u3084\u3001\u305b\u3093\u306e\u3093\u304b\u3044\uff08\u5409\u672c\u65b0\u559c\u5287\u98a8\uff09\u300d\u306a\u51fa\u6765\u4e8b\u306e\u5f71\u97ff\u3067\u516c\u958b\u304c\u9045\u308c\u3066\u3044\u305fG &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=12324\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;ChatGPT \u3068 Laravel \u306e API \u3092\u9023\u643a\u3055\u305b\u308b\uff08Actions in GPTs\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":12350,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[253,3],"tags":[],"class_list":["post-12324","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chatgpt","category-laravel"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12324"}],"version-history":[{"count":9,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12324\/revisions"}],"predecessor-version":[{"id":12352,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12324\/revisions\/12352"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/12350"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}