{"id":3745,"date":"2019-06-06T03:49:24","date_gmt":"2019-06-05T18:49:24","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=3745"},"modified":"2019-06-06T03:49:24","modified_gmt":"2019-06-05T18:49:24","slug":"%e6%84%8f%e5%a4%96%e3%81%a8%e7%b0%a1%e5%8d%98%ef%bc%81laravel-passport%e3%81%a7%e8%87%aa%e5%88%86%e3%81%ae%e7%99%bb%e9%8c%b2%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=3745","title":{"rendered":"\u610f\u5916\u3068\u7c21\u5358\uff01Laravel Passport\u3067\u81ea\u5206\u306e\u767b\u9332\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001Laravel\u306e\u4e16\u754c\u306f\u5e83\u5927\u306a\u306e\u3067\u307e\u3060\u307e\u3060\u89e6\u308c\u305f\u3053\u3068\u304c\u306a\u3044\u6a5f\u80fd\u304c\u591a\u6570\u5b58\u5728\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u518d\u78ba\u8a8d\u3057\u3066\u3044\u308b\u4eca\u65e5\u3053\u306e\u9803\u3067\u3059\u3002\uff08\u3057\u304b\u3082\u305d\u306e\u4e16\u754c\u306f\u5e38\u306b\u62e1\u5927\u3057\u7d9a\u3051\u3066\u3044\u307e\u3059\ud83d\ude02\uff09<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u308c\u3082\u4ee5\u524d\u304b\u3089\u6311\u6226\u3057\u3066\u304a\u304d\u305f\u304b\u3063\u305f\u6a5f\u80fd\u3092\u601d\u3044\u51fa\u3057\u307e\u3057\u305f\u3002\u305d\u308c\u304c\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">Laravel Passport<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p><code>Laravel Passport<\/code>\u3068\u306f\u3001API\u306e\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u3092\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3001\u4f8b\u3048\u3070\u3001Youtube\u3067\u52d5\u753b\u3092\u691c\u7d22\u3059\u308b\u300cYouTube Data API\u300d\u306e\u3088\u3046\u306b\u767b\u9332\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u3060\u3051\u304c\u30c7\u30fc\u30bf\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u3064\u307e\u308a\u3001\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3068\u3044\u3046\u3088\u308a\u306f\u958b\u767a\u8005\u306e\u305f\u3081\u306b\u30c7\u30fc\u30bf\u63d0\u4f9b\u3092\u3059\u308b\u4ed5\u7d44\u307f\u3068\u306a\u308a\u307e\u3059\uff09<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u3053\u306e<code>Laravel Passport<\/code>\u3092\u4f7f\u3063\u3066\u4ee5\u4e0b\u306e\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<ol>\n<li>\u767b\u9332\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u304c\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3092\u4f7f\u3063\u3066API\u3067\u8a8d\u8a3c\u3092\u3059\u308b<\/li>\n<li>\u8a8d\u8a3c\u304c\u6b63\u3057\u3051\u308c\u3070\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u30c7\u30fc\u30bf\u3092JSON\u5f62\u5f0f\u3067\u63d0\u4f9b\u3059\u308b<\/li>\n<\/ol>\n<p>\u3067\u306f\u3001\u884c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3344 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22.png\" alt=\"\" width=\"320\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22.png 320w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22-150x150.png 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22-300x300.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22-100x100.png 100w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/p>\n<p>\u5b9f\u884c\u74b0\u5883\uff1a Laravel 5.8<\/p>\n<h1>\u524d\u63d0\u6761\u4ef6\u3068\u3057\u3066<\/h1>\n<p>\u3059\u3067\u306b<code>php artisan make:auth<\/code>\u3067\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u30b7\u30b9\u30c6\u30e0\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u524d\u63d0\u3067\u3059\u3002\u8a73\u3057\u304f\u306f\u3001<a href=\"https:\/\/blog.capilano-fw.com\/?p=289\">\u3010Laravel5.6\u3011\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306b\u3084\u308b\u3053\u3068\uff13\u70b9<\/a>\u306e\u300c\u30ed\u30b0\u30a4\u30f3\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30de\u30a4\u30f3\u30c0\u30fc\u6a5f\u80fd\u3092\u69cb\u7bc9\u300d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h1>Laravel Passport\uff08OAuth2\uff09\u306e\u4ed5\u7d44\u307f\uff1a\u8d85\u7c21\u7565\u7de8<\/h1>\n<p>\u4f5c\u696d\u3092\u306f\u3058\u3081\u308b\u524d\u306b\u3001<code>OAuth2<\/code>\u3092\u77e5\u3089\u306a\u3044\u4eba\u306e\u305f\u3081\u306b\u7c21\u5358\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\u3054\u5b58\u77e5\u306e\u65b9\u306f\u6b21\u306e\u9805\u76ee\u307e\u3067\u8aad\u307f\u98db\u3070\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><code>Laravel Password<\/code> \u306f<code>OAuth2<\/code>\u3068\u547c\u3070\u308c\u308b\u8a8d\u8a3c\u65b9\u6cd5\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u306a\u3093\u305b\u3053\u306e<code>OAuth<\/code>\u3068\u3044\u3046\u306e\u304c\u3084\u3084\u3063\u3053\u3057\u3044\u306e\u3067\u3001\u4eca\u56de\u306f\u30a8\u30c3\u30bb\u30f3\u30b9\u3060\u3051\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u7d39\u4ecb\u3057\u307e\u3059\u3002\uff08\u4eca\u56de\u306e\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\uff09<\/p>\n<p>\ud83d\ude0a \u3042\u306a\u305f\u300c\u30c7\u30fc\u30bf\u307b\u3057\u3044\u304b\u3089\u8a31\u53ef\u66f8\u3061\u3087\u3046\u3060\u3044\uff01\u300d<br \/>\n<span style=\"font-size: 1rem;\">\ud83d\udcbb \u30b5\u30a4\u30c8\u300c\u3042\u3044\u3088\u300d<br \/>\n<\/span><span style=\"font-size: 1rem;\">\ud83d\ude0a \u3042\u306a\u305f\u300c\u8a31\u53ef\u66f8\u30b2\u30c3\u30c8\uff01\u300d<br \/>\n<\/span><span style=\"font-size: 1rem;\">\ud83d\ude0a \u3042\u306a\u305f\u300c\u3053\u306e\u8a31\u53ef\u66f8\u3067\u50d5\u306e\u30c7\u30fc\u30bf\u3061\u3087\u3046\u3060\u3044\uff01<\/span><span style=\"font-size: 1rem;\">\u300d<br \/>\n<\/span><span style=\"font-size: 1rem;\">\ud83d\udcbb \u30b5\u30a4\u30c8\u300c\u3042\u3044\u3088\u300d<br \/>\n<\/span><span style=\"font-size: 1rem;\">\ud83d\ude0a \u3042\u306a\u305f\u300c\u30c7\u30fc\u30bf\u30b2\u30c3\u30c8\uff01\uff01\uff01\u300d<\/span><\/p>\n<p>\u3064\u307e\u308a\u3001\u3044\u3063\u305f\u3093\u30c8\u30fc\u30af\u30f3\u3068\u547c\u3070\u308c\u308b\u8a31\u53ef\u66f8\uff08\u901a\u5e38\u30e9\u30f3\u30c0\u30e0\u306a\u6587\u5b57\u5217\uff09\u3092\u53d6\u5f97\u3057\u3066\u304b\u3089\u305d\u308c\u3092\u4f7f\u3063\u3066\u76ee\u7684\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3068\u3044\u3046\u6d41\u308c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>Laravel Passport\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p><code>Laravel Passport<\/code>\u306f\u3001\u6a19\u6e96\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u306f\u306a\u3044\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u308a\u307e\u3059\u3002\u9806\u3092\u8ffd\u3063\u3066\u307f\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001<code>composer<\/code>\u3067\u5c02\u7528\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>composer require laravel\/passport<\/strong><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u3066DB\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\uff08\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u76f4\u63a5\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u8aad\u307f\u8fbc\u3081\u308b\u306e\u3067<code>publish<\/code>\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\uff09<\/p>\n<p>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u5b8c\u4e86\u3057\u305f\u3089\u4ee5\u4e0b\u306e\u3088\u3046<code>oauth_<\/code>\u3067\u306f\u3058\u307e\u308b\u30c6\u30fc\u30d6\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3746\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_1.png\" alt=\"\" width=\"773\" height=\"357\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_1.png 773w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_1-300x139.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_1-768x355.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u5c02\u7528\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308c\u3070\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<pre><strong>php artisan passport:install<\/strong><\/pre>\n<p>\u203b \u3053\u306e\u30b3\u30de\u30f3\u30c9\u306b\u3088\u3063\u3066<code>storage<\/code>\u30d5\u30a9\u30eb\u30c0\u306b<code>oauth-private.key<\/code>\u3001<code>oauth-public.key<\/code>\u304c\u4f5c\u6210\u3055\u308c\u3001DB\u306b<code>OAuth Client<\/code>\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>\u6e96\u5099\u3092\u3059\u308b<\/h1>\n<p><code>Laravel Passport<\/code>\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3089\u3001\u5b9f\u969b\u306b\u4f7f\u3048\u308b\u3088\u3046\u306b\u6e96\u5099\u3092\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f<code>app\/User.php<\/code>\u3092\u958b\u3044\u3066\u5c02\u7528\u306e\u30c8\u30ec\u30a4\u30c8<code>HasApiTokens<\/code>\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\uff08\u592a\u5b57\u304c\u8ffd\u52a0\u3057\u305f\u90e8\u5206\u3067\u3059\uff09<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App;\r\n\r\n\/\/ \u7701\u7565\r\n\r\n<strong>use Laravel\\Passport\\HasApiTokens;<\/strong>\r\n\r\nclass User extends Authenticatable\r\n{\r\n    use <strong>HasApiTokens<\/strong>, Notifiable;<\/pre>\n<p>\u7d9a\u3044\u3066\u3001<code>Laravel Passport<\/code>\u304c\u7528\u610f\u3057\u3066\u304f\u308c\u3066\u3044\u308b<code>Route<\/code>\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<code>app\/Providers\/AuthServiceProvider.php<\/code>\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Providers;\r\n\r\nuse Illuminate\\Foundation\\Support\\Providers\\AuthServiceProvider as ServiceProvider;\r\n<strong>use Laravel\\Passport\\Passport;<\/strong>\r\n\r\nclass AuthServiceProvider extends ServiceProvider\r\n{\r\n\r\n    \/\/ \u7701\u7565\r\n\r\n    public function boot()\r\n    {\r\n        $this-&gt;registerPolicies();\r\n\r\n        <strong>Passport::routes();<\/strong>\r\n    }\r\n}<\/pre>\n<p>\u203b Route\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u4ee5\u4e0b\u306eURL\u304cLaravel\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002\uff08\u6b63\u76f4\u306a\u3068\u3053\u308d\u4eca\u56de\u306f\u30a2\u30af\u30bb\u30b9\u3057\u307e\u305b\u3093\u304c\u3001\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u3068\u304a\u308a\u8a2d\u5b9a\u3057\u307e\u3059\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3747\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_2.png\" alt=\"\" width=\"517\" height=\"273\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_2.png 517w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_2-300x158.png 300w\" sizes=\"auto, (max-width: 517px) 100vw, 517px\" \/><\/p>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b<code>config\/auth.php<\/code>\u306e<code>api<\/code>\u306e\u9805\u76ee\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3059\u308c\u3070\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<pre>'guards' =&gt; [\r\n    'web' =&gt; [\r\n        'driver' =&gt; 'session',\r\n        'provider' =&gt; 'users',\r\n    ],\r\n\r\n    <strong>'api' =&gt; [<\/strong>\r\n<strong>        'driver' =&gt; 'passport',<\/strong>\r\n<strong>        'provider' =&gt; 'users'<\/strong>\r\n<strong>    ],<\/strong>\r\n],<\/pre>\n<h1>\u30c6\u30b9\u30c8\u30c4\u30fc\u30eb\uff08Postman\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<p>\u30c6\u30b9\u30c8\u3067HTTP\u9001\u4fe1\u3059\u308b\u305f\u3081\u306b\u3044\u3061\u3044\u3061<code>axios<\/code>\u3084<code>guzzlehttp<\/code>\u306a\u3069\u3067\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u306e\u306f\u3081\u3093\u3069\u3046\u306a\u306e\u3067\u3001\u9001\u4fe1\u30c4\u30fc\u30eb<code>Postman<\/code>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\uff08\u500b\u4eba\u3001\u30b9\u30e2\u30fc\u30eb\u30c1\u30fc\u30e0\u306f\u7121\u6599\u3067\u4f7f\u3048\u307e\u3059\u3057\u3001Windows, mac, Linux\u5168\u3066\u306b\u5bfe\u5fdc\u3057\u3066\u307e\u3059\u3002Electron\u3067\u4f5c\u3063\u3066\u308b\u3093\u3067\u3059\u306d\uff09<\/p>\n<p>\u307e\u305a\u3001<a href=\"https:\/\/www.getpostman.com\/downloads\/\" target=\"_blank\" rel=\"noopener noreferrer\">Postman\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/a>\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3751\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_4.png\" alt=\"\" width=\"700\" height=\"426\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_4.png 700w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_4-300x183.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>\u79c1\u306e\u74b0\u5883\u306fLinux\u306a\u306e\u3067<code>tar.gz<\/code>\u3067\u3057\u305f\u304c\u3001Windows\u3060\u3068<code>exe<\/code>\u30d5\u30a1\u30a4\u30eb\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u306e\u3067\u3001\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3066\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff08<code>tar.gz<\/code>\u306e\u5834\u5408\u306f\u5c55\u958b\u3057\u3066<code>postman<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u307e\u3059\uff09<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u8d77\u52d5\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u793a\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001<\/p>\n<ol>\n<li>Email\u3000\u30fb\u30fb\u30fb\u3000\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/li>\n<li>Username\u3000\u30fb\u30fb\u30fb\u3000\u30e6\u30fc\u30b6\u30fc\u540d<\/li>\n<li>Password\u3000\u30fb\u30fb\u30fb\u3000\u30d1\u30b9\u30ef\u30fc\u30c9<\/li>\n<\/ol>\n<p>\u3092\u5165\u529b\u3057\u3066\u300c<strong>Create free account<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\uff08\u3082\u3057\u304f\u306f\u305d\u306e\u4e0b\u306b\u3042\u308bGoogle\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3754\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_5.png\" alt=\"\" width=\"777\" height=\"575\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_5.png 777w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_5-300x222.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_5-768x568.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210\u304c\u6210\u529f\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8208\u5473\u306e\u3042\u308b\u5185\u5bb9\u3068\u30c1\u30fc\u30e0\u306e\u767b\u9332\u753b\u9762\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u4eca\u306e\u3068\u3053\u308d\u306f\u95a2\u4fc2\u306a\u3044\u306e\u3067\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u304a\u3044\u3066\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3752\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_6.png\" alt=\"\" width=\"458\" height=\"95\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_6.png 458w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_6-300x62.png 300w\" sizes=\"auto, (max-width: 458px) 100vw, 458px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3753\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_7.png\" alt=\"\" width=\"278\" height=\"83\" \/><\/p>\n<p>\u3053\u308c\u3067<code>Postman<\/code>\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3055\u3063\u305d\u304f\u30a6\u30a3\u30f3\u30c9\u30a6\u4e0a\u90e8\u306e\u4e2d\u592e\u306b\u3042\u308b\u300c<strong>\uff0b<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u9001\u4fe1\u306e\u30bf\u30d6\u3092\u958b\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3755\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_8.png\" alt=\"\" width=\"567\" height=\"216\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_8.png 567w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_8-300x114.png 300w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><\/p>\n<p>\u30bf\u30d6\u304c\u958b\u304f\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u793a\u306b\u306a\u308a\u3001URL\u3092\u5165\u529b\u3057\u3066<code>Send<\/code>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3060\u3051\u3067\u7c21\u5358\u306b\u9001\u4fe1\u30c6\u30b9\u30c8\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3756\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_9.png\" alt=\"\" width=\"1057\" height=\"240\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_9.png 1057w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_9-300x68.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_9-768x174.png 768w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_9-1024x233.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u203b \u3082\u3061\u308d\u3093GET\u3060\u3051\u3067\u306a\u304fPOST\u3001PUT\u3001DELETE\u306a\u3069\u69d8\u3005\u306a\u30e1\u30bd\u30c3\u30c9\u304c\u4f7f\u3048\u307e\u3059\u3057\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u3082\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002\u3055\u3089\u306b\u3001<code>headers<\/code>\u3092\u5909\u66f4\u3059\u308c\u3070<code>ajax<\/code>\u9001\u4fe1\u306e\u30c6\u30b9\u30c8\u3082\u884c\u3048\u307e\u3059\u306e\u3067\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<h1>Laravel Passport\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u90e8\u5206\u3092\u3064\u304f\u308b<\/h1>\n<h2>\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3059\u308b\u90e8\u5206\u3092\u3064\u304f\u308b<\/h2>\n<p>\u3067\u306f\u3001\u3053\u3053\u304b\u3089\u304c\u5b9f\u969b\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u3044\u304f\u4f5c\u696d\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u30e6\u30fc\u30b6\u30fc\u304c\u3001\u300c\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u300d\u3068\u300c\u30d1\u30b9\u30ef\u30fc\u30c9\u300d\u3092\u9001\u4fe1\u3057\u3066\u300c\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u300d\u3068\u547c\u3070\u308c\u308b\u8a31\u53ef\u66f8\u306e\u3088\u3046\u306a\u6587\u5b57\u5217\u3092\u53d6\u5f97\u3059\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>php artisan make:controller Api\/AuthController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>app\/Http\/Controllers\/Api\/AuthController.php<\/code>\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers\\Api;\r\n\r\nuse Illuminate\\Http\\Request;\r\nuse App\\Http\\Controllers\\Controller;\r\n\r\nclass AuthController extends Controller\r\n{\r\n    <strong>public function login(Request $request) {<\/strong>\r\n\r\n<strong>        $credentials = $request-&gt;only('email', 'password');<\/strong>\r\n\r\n<strong>        if(auth()-&gt;attempt($credentials)) {<\/strong>\r\n\r\n<strong>            $user = auth()-&gt;user();<\/strong>\r\n<strong>            $token = $user-&gt;createToken('Laravel Password Grant Client')-&gt;accessToken;<\/strong>\r\n<strong>            return ['token' =&gt; $token];<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return response([<\/strong>\r\n<strong>            'message' =&gt; 'Unauthenticated.'<\/strong>\r\n<strong>        ], 401);<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u4e2d\u8eab\u3068\u3057\u3066\u306f\u3001\u307e\u305a\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u6210\u529f\u3059\u308c\u3070\u30c8\u30fc\u30af\u30f3\u3092\u4f5c\u6210\u3057\u3066\u8fd4\u3057\u307e\u3059\u3002\u9006\u306b\u30ed\u30b0\u30a4\u30f3\u306b\u5931\u6557\u3057\u305f\u3089401\u30b3\u30fc\u30c9\u3067\u30a8\u30e9\u30fc\u3092\u77e5\u3089\u305b\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b<code>routes\/api.php<\/code>\u306b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\uff08\u592a\u5b57\u304c\u8ffd\u52a0\u3057\u305f\u90e8\u5206\u3067\u3059\uff09<\/p>\n<pre>&lt;?php\r\n\r\nuse Illuminate\\Http\\Request;\r\n\r\n\/\/ \u7701\u7565\r\n\r\nRoute::middleware('auth:api')-&gt;get('\/user', function (Request $request) {\r\n    return $request-&gt;user();\r\n});\r\n<strong>Route::post('\/login', 'Api\\AuthController@login');<\/strong><\/pre>\n<p>\u3053\u308c\u3067\u3001<code>http:\/\/*****.com\/api\/login<\/code>\u306bPOST\u9001\u4fe1\u3067\u4ee5\u4e0b\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u3068\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>emai\u3000\u30fb\u30fb\u30fb\u3000\u767b\u9332\u30e6\u30fc\u30b6\u30fc\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/li>\n<li>password\u3000\u30fb\u30fb\u30fb\u3000\u767b\u9332\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9<\/li>\n<\/ul>\n<p>\u5b9f\u969b\u306b\u9001\u4fe1\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3757\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_10.png\" alt=\"\" width=\"1047\" height=\"137\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_10.png 1047w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_10-300x39.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_10-768x100.png 768w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_10-1024x134.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<h2>\u30c8\u30fc\u30af\u30f3\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u90e8\u5206\u3092\u3064\u304f\u308b<\/h2>\n<p>\u3067\u306f\u3001\u8a31\u53ef\u66f8\u306b\u3042\u305f\u308b\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3067\u304d\u305f\u306e\u3067\u3001\u6b21\u306f\u30c8\u30fc\u30af\u30f3\u3092\u4f7f\u3063\u3066\u81ea\u5206\u81ea\u8eab\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u90e8\u5206\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u30fb\u30fb\u30fb\u3068\u306f\u3044\u3063\u3066\u3082\u3001\u30e6\u30fc\u30b6\u30fc\u30c7\u30fc\u30bf\u3092\u8fd4\u3059\u30b3\u30fc\u30c9\u306f\u3059\u3067\u306b\u5b58\u5728\u3057\u3066\u3044\u308b\u306e\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\uff08\u2193\u2193\u2193<code>routes\/api.php<\/code>\u306e\uff11\u3064\u3081\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3067\u3059\uff09<\/p>\n<pre>Route::middleware('auth:api')-&gt;get('\/user', function (Request $request) {\r\n    <strong>return $request-&gt;user();<\/strong>\r\n});<\/pre>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5148\u307b\u3069\u53d6\u5f97\u3057\u305f\u30c8\u30fc\u30af\u30f3\u3092\u4f7f\u3063\u3066\u30e6\u30fc\u30b6\u30fc\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<code>Postman<\/code>\u3067\u306e\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u65b0\u3057\u3044\u30bf\u30d6\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3755\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_8.png\" alt=\"\" width=\"567\" height=\"216\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_8.png 567w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_8-300x114.png 300w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><\/p>\n<p>\u3059\u308b\u3068\u30c7\u30fc\u30bf\u9001\u4fe1\u306e\u753b\u9762\u306b\u306a\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3758\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_11.png\" alt=\"\" width=\"713\" height=\"261\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_11.png 713w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_11-300x110.png 300w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/p>\n<p>\u30e1\u30bd\u30c3\u30c9\u306fGET\u306e\u307e\u307e\u3067URL\u306b<code>http:\/\/******.com\/api\/user<\/code>\u3092\u5165\u529b\u3057\u3001\u3055\u3089\u306b<code>Headers<\/code>\u306e\u30bf\u30d6\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u4ee5\u4e0b\uff12\u3064\u306e\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>Accept\u3000\u30fb\u30fb\u30fb\u30fb\u3000application\/json<\/li>\n<li>Authorization\u3000\u30fb\u30fb\u30fb\u30fb\u3000Bearer + \u3055\u3063\u304d\u306e\u30c8\u30fc\u30af\u30f3\u3000\u203b<\/li>\n<\/ul>\n<p>\u203b \u4f8b\u3048\u3070\u30c8\u30fc\u30af\u30f3\u304c\u300c12345\u300d\u3060\u3063\u305f\u5834\u5408\u3001\u5165\u529b\u3059\u3079\u304d\u6587\u5b57\u5217\u306f<\/p>\n<p><strong>\u300cBearer 12345\u300d<\/strong><\/p>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002\uff08\u9593\u306b\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3042\u308a\uff01\uff09<\/p>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u9001\u4fe1\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3759\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_12.png\" alt=\"\" width=\"384\" height=\"112\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_12.png 384w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/06\/laravel_passport_12-300x88.png 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/p>\n<p>\u306f\u3044\uff01<br \/>\n\u3046\u307e\u304f\u30e6\u30fc\u30b6\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u4eca\u56de\u306f<code>Laravel Passport<\/code>\u306eAPI\u3092\u4f7f\u3063\u3066\u8a8d\u8a3c\uff06\u30c7\u30fc\u30bf\u53d6\u5f97\u3059\u308b\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u4f7f\u3048\u3070\u8907\u6570\u306e\u30b5\u30a4\u30c8\u9593\u3067\u30c7\u30fc\u30bf\u306e\u3084\u308a\u3068\u308a\u304c\u3067\u304d\u307e\u3059\u3057\u3001\u306a\u3093\u306a\u3089\u30c7\u30fc\u30bf\u306e\u8ffd\u52a0\u3001\u5909\u66f4\u3001\u524a\u9664\u306a\u3069\u3082\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u53ef\u80fd\u6027\u306f\u7121\u9650\u5927\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u307e\u305f\u3001\u4eca\u56de\u30c7\u30fc\u30bf\u9001\u4fe1\u30c6\u30b9\u30c8\u306e\u305f\u3081\u306b<code>Postman<\/code>\u3092\u306f\u3058\u3081\u3066\u4f7f\u3044\u307e\u3057\u305f\u304c\u3001\u3053\u308c\u3001\u30db\u30f3\u30c8\u4fbf\u5229\u3067\u3059\uff01<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\u3001\u901a\u5e38\u306e\u30a2\u30af\u30bb\u30b9\u30c6\u30b9\u30c8\u306a\u3089\u3082\u3061\u308d\u3093<code>axios<\/code>\u306a\u3069\u3067\u3084\u308c\u3070\u3044\u3044\u3093\u3067\u3059\u3051\u3069\u3001<code>Postman<\/code>\u306f<code>Header<\/code>\u3060\u3051\u3067\u306a\u304f<code>Body<\/code>\u307e\u3067\u8a2d\u5b9a\u304c\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u3053\u308c\u3072\u3068\u3064\u3042\u308c\u3070HTTP\u306e\u30c6\u30b9\u30c8\u306f\u3069\u3093\u306a\u3082\u306e\u3067\u3082\u5bfe\u5fdc\u3067\u304d\u308b\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b2019.06.06\u73fe\u5728\u3001\u65e5\u672c\u8a9e\u5316\u306f\u3057\u3066\u3044\u306a\u3044\u3088\u3046\u3067\u3059\u304c\u3001\u305d\u308c\u307b\u3069\u96e3\u3057\u3044\u82f1\u8a9e\u306f\u3067\u3066\u3053\u306a\u3044\u306e\u3067\u7686\u3055\u3093\u3082\u4e00\u5ea6\u8a66\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u266a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-418 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/35.png\" alt=\"\" width=\"370\" height=\"240\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/35.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/35-300x195.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001Laravel\u306e\u4e16\u754c\u306f\u5e83\u5927\u306a\u306e\u3067\u307e\u3060\u307e\u3060\u89e6\u308c\u305f\u3053\u3068\u304c\u306a\u3044\u6a5f\u80fd\u304c\u591a\u6570\u5b58\u5728\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u518d\u78ba\u8a8d\u3057\u3066\u3044\u308b\u4eca\u65e5\u3053\u306e\u9803\u3067\u3059\u3002\uff08\u3057\u304b\u3082\u305d\u306e\u4e16\u754c\u306f\u5e38\u306b\u62e1\u5927\u3057\u7d9a\u3051\u3066\u3044 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=3745\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u610f\u5916\u3068\u7c21\u5358\uff01Laravel Passport\u3067\u81ea\u5206\u306e\u767b\u9332\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":3762,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[134],"class_list":["post-3745","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-api"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/3745","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=3745"}],"version-history":[{"count":4,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/3745\/revisions"}],"predecessor-version":[{"id":3761,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/3745\/revisions\/3761"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/3762"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}