{"id":204,"date":"2022-01-22T19:06:14","date_gmt":"2022-01-22T10:06:14","guid":{"rendered":"https:\/\/software.satoshis.jp\/?p=204"},"modified":"2022-01-23T00:09:26","modified_gmt":"2022-01-22T15:09:26","slug":"laravel%e3%81%a7%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%82%92%e6%9a%97%e5%8f%b7%e5%8c%96%e3%81%97%e3%81%9f%e3%81%a8%e3%81%8d%e3%81%ab%e3%83%91%e3%82%b9%e3%83%af%e3%83%bc","status":"publish","type":"post","link":"https:\/\/software.satoshis.jp\/?p=204","title":{"rendered":"Laravel\u3067\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u6697\u53f7\u5316\u3057\u305f\u3068\u304d\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u518d\u8a2d\u5b9a\u7528\u30ea\u30f3\u30af\u3092\u9001\u4fe1\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/software.satoshis.jp\/wp-content\/uploads\/2021\/03\/laravel.png\" alt=\"\" width=\"400\" height=\"400\" class=\"alignnone size-full wp-image-63\" \/><\/p>\n<p>\u4ee5\u524d\u3001<a href=\"https:\/\/software.satoshis.jp\/?p=188\" target=\"_blank\" rel=\"noopener\">Laravel\u304b\u3089DB\u306b\u683c\u7d0d\u3059\u308b\u30c7\u30fc\u30bf\u3092\u6697\u53f7\u5316\u30fb\u5fa9\u53f7\u3059\u308b\u65b9\u6cd5\u3068\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306eunique\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u554f\u984c<\/a>\u3068\u3044\u3046\u306e\u3092\u66f8\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3067\u5927\u4e08\u592b\u304b\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u6697\u53f7\u5316\u3057\u305f\u305f\u3081\u306b\u3001\u5225\u306e\u3068\u3053\u308d\u3067\u5f71\u97ff\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30ea\u30bb\u30c3\u30c8\u3067\u3059\u3002<\/p>\n<p>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u300c\u30d1\u30b9\u30ef\u30fc\u30c9\u518d\u8a2d\u5b9a\u7528\u30ea\u30f3\u30af\u3092\u9001\u4fe1\u3059\u308b\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u3001\u300c\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306b\u5bfe\u5fdc\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\u300d\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u6697\u53f7\u5316\u3057\u3066\u4fdd\u5b58\u3057\u3066\u3044\u308b\u305f\u3081\u306b\u3001\u6a19\u6e96\u306e\u6a5f\u80fd\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>resources\/views\/auth\/passwords\/email.blade.php \u3092\u898b\u308b\u3068\u3001\u300c\u30d1\u30b9\u30ef\u30fc\u30c9\u518d\u8a2d\u5b9a\u7528\u30ea\u30f3\u30af\u3092\u9001\u4fe1\u3059\u308b\u300d\u3092\u62bc\u3059\u3068\u3001password\/email \u306bPOST\u3057\u3066\u307e\u3059\u3002<\/p>\n<p>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ php artisan route:list | grep password\/email\r\n|        | POST      | password\/email                | password.email      | App\\Http\\Controllers\\Auth\\ForgotPasswordController@sendResetLinkEmail  | web                       |\r\n<\/pre>\n<p>ForgotPasswordController\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\n\r\nnamespace App\\Http\\Controllers\\Auth;\r\n\r\nuse App\\Http\\Controllers\\Controller;\r\nuse Illuminate\\Foundation\\Auth\\SendsPasswordResetEmails;\r\n\r\nclass ForgotPasswordController extends Controller\r\n{\r\n    \/*\r\n    |--------------------------------------------------------------------------\r\n    | Password Reset Controller\r\n    |--------------------------------------------------------------------------\r\n    |\r\n    | This controller is responsible for handling password reset emails and\r\n    | includes a trait which assists in sending these notifications from\r\n    | your application to your users. Feel free to explore this trait.\r\n    |\r\n    *\/\r\n\r\n    use SendsPasswordResetEmails;\r\n}\r\n<\/pre>\n<p>\u672c\u4f53\u306f vendor\/laravel\/ui\/auth-backend\/SendPasswordResetEmails \u3067\u3057\u305f\u3002<\/p>\n<p>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u305f\u3081\u306b\u3001$this->sendResetLinkFailedResponse() \u3092 return \u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>Password::broker() \u306b\u5bfe\u3057\u3066\u554f\u3044\u5408\u308f\u305b\u3092\u3057\u3066\u3001\u5931\u6557\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n    \/**\r\n     * Send a reset link to the given user.\r\n     *\r\n     * @param  \\Illuminate\\Http\\Request  $request\r\n     * @return \\Illuminate\\Http\\RedirectResponse|\\Illuminate\\Http\\JsonResponse\r\n     *\/\r\n    public function sendResetLinkEmail(Request $request)\r\n    {\r\n        $this-&gt;validateEmail($request);\r\n\r\n        \/\/ We will send the password reset link to this user. Once we have attempted\r\n        \/\/ to send the link, we will examine the response then see the message we\r\n        \/\/ need to show to the user. Finally, we'll send out a proper response.\r\n        $response = $this-&gt;broker()-&gt;sendResetLink(\r\n            $this-&gt;credentials($request)\r\n        );\r\n        return $response == Password::RESET_LINK_SENT\r\n                    ? $this-&gt;sendResetLinkResponse($request, $response)\r\n                    : $this-&gt;sendResetLinkFailedResponse($request, $response);\r\n    }\r\n\r\n\uff08\u7565\uff09\r\n\r\n    \/**\r\n     * Get the broker to be used during password reset.\r\n     *\r\n     * @return \\Illuminate\\Contracts\\Auth\\PasswordBroker\r\n     *\/\r\n    public function broker()\r\n    {\r\n        return Password::broker();\r\n    }\r\n<\/pre>\n<p>vendor\/laravel\/framework\/src\/Illuminate\/Support\/Facades\/Password.php \u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3082\u305f\u3044\u3057\u305f\u3053\u3068\u306f\u3057\u3066\u306a\u304f\u3066\u3001\u672c\u4f53\u306f vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Passwords\/PasswordBroker \u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; highlight: [13,50]; title: ; notranslate\" title=\"\">\r\n    \/**\r\n     * Send a password reset link to a user.\r\n     *\r\n     * @param  array  $credentials\r\n     * @param  \\Closure|null  $callback\r\n     * @return string\r\n     *\/\r\n    public function sendResetLink(array $credentials, Closure $callback = null)\r\n    {\r\n        \/\/ First we will check to see if we found a user at the given credentials and\r\n        \/\/ if we did not we will redirect back to this current URI with a piece of\r\n        \/\/ &quot;flash&quot; data in the session to indicate to the developers the errors.\r\n        $user = $this-&gt;getUser($credentials);\r\n        if (is_null($user)) {\r\n            return static::INVALID_USER;\r\n        }\r\n\r\n        if ($this-&gt;tokens-&gt;recentlyCreatedToken($user)) {\r\n            return static::RESET_THROTTLED;\r\n        }\r\n\r\n        $token = $this-&gt;tokens-&gt;create($user);\r\n\r\n        if ($callback) {\r\n            $callback($user, $token);\r\n        } else {\r\n            \/\/ Once we have the reset token, we are ready to send the message out to this\r\n            \/\/ user with a link to reset their password. We will then redirect back to\r\n            \/\/ the current URI having nothing set in the session to indicate errors.\r\n            $user-&gt;sendPasswordResetNotification($token);\r\n        }\r\n\r\n        return static::RESET_LINK_SENT;\r\n    }\r\n\r\n\uff08\u7565\uff09\r\n\r\n    \/**\r\n     * Get the user for the given credentials.\r\n     *\r\n     * @param  array  $credentials\r\n     * @return \\Illuminate\\Contracts\\Auth\\CanResetPassword|null\r\n     *\r\n     * @throws \\UnexpectedValueException\r\n     *\/\r\n    public function getUser(array $credentials)\r\n    {\r\n        $credentials = Arr::except($credentials, &#x5B;'token']);\r\n\r\n        $user = $this-&gt;users-&gt;retrieveByCredentials($credentials);\r\n\r\n        if ($user &amp;&amp; ! $user instanceof CanResetPasswordContract) {\r\n            throw new UnexpectedValueException('User must implement CanResetPassword interface.');\r\n        }\r\n\r\n        return $user;\r\n    }\r\n<\/pre>\n<p>$credentials \u3092\u51fa\u529b\u3057\u3066\u307f\u308b\u3068\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u6e21\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\narray (\r\n  'email' =&gt; 'hoge@example.com',\r\n)\r\n<\/pre>\n<p>$this->users \u3092\u8abf\u3079\u3066\u307f\u305f\u3089\u3001vendor\/laravel\/framework\/src\/Illuminate\/Auth\/EloquentUserProvider \u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<br \/>\n\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5143\u306b\u30af\u30a8\u30ea\u3092\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u306f\u3001\u3053\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n    \/**\r\n     * Retrieve a user by the given credentials.\r\n     *\r\n     * @param  array  $credentials\r\n     * @return \\Illuminate\\Contracts\\Auth\\Authenticatable|null\r\n     *\/\r\n    public function retrieveByCredentials(array $credentials)\r\n    {\r\n        if (empty($credentials) ||\r\n           (count($credentials) === 1 &amp;&amp;\r\n            Str::contains($this-&gt;firstCredentialKey($credentials), 'password'))) {\r\n            return;\r\n        }\r\n\r\n        \/\/ First we will add each credential element to the query as a where clause.\r\n        \/\/ Then we can execute the query and, if we found a user, return it in a\r\n        \/\/ Eloquent User &quot;model&quot; that will be utilized by the Guard instances.\r\n        $query = $this-&gt;newModelQuery();\r\n\r\n        foreach ($credentials as $key =&gt; $value) {\r\n            if (Str::contains($key, 'password')) {\r\n                continue;\r\n            }\r\n\r\n            if (is_array($value) || $value instanceof Arrayable) {\r\n                $query-&gt;whereIn($key, $value);\r\n            } elseif ($value instanceof Closure) {\r\n                $value($query);\r\n            } else {\r\n                $query-&gt;where($key, $value);\r\n            }\r\n        }\r\n\r\n        return $query-&gt;first();\r\n    }\r\n<\/pre>\n<p>\u8981\u3059\u308b\u306b\u3001\u3053\u306e\u90e8\u5206\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3066\u3084\u308c\u3070\u3088\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>Laravel\u3067\u306e vendor \u4ee5\u4e0b\u306b\u5b58\u5728\u3059\u308b\u30af\u30e9\u30b9\u306e\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u306e\u65b9\u6cd5\u3092\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305a\u3001app\/Providers \u306b\u3001\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u306e\u5b9f\u88c5\u3092\u3059\u308b\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u6697\u53f7\u5316\u3057\u307e\u3057\u305f\u304c\u3001md5\u5024\u3092\u683c\u7d0d\u3059\u308b\u30ab\u30e9\u30e0\u3092\u4f5c\u3063\u3066\u307e\u3059\u306e\u3067\u3001\u3053\u308c\u3092\u30ad\u30fc\u306b\u3057\u3066\u30af\u30a8\u30ea\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>app\/Providers\/Md5UserProvider \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\nemail \u3067\u306e\u30af\u30a8\u30ea\u306e\u90e8\u5206\u3092 md5 \u306b\u7f6e\u304d\u63db\u3048\u3066\u3084\u308a\u307e\u3059\u3002<br \/>\n\u540c\u4e00\u306e md5 \u306e\u5024\u306b\u5bfe\u3057\u3066\u8907\u6570\u304c\u30d2\u30c3\u30c8\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u5f97\u306a\u3044\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u3001\u30af\u30a8\u30ea\u306e\u7d50\u679c\u5168\u3066\u306b\u5bfe\u3057\u3066 email \u304c\u4e00\u81f4\u3059\u308b\u304b\u3069\u3046\u304b\u3067\u8abf\u3079\u307e\u3059\u3002<br \/>\nemail \u4ee5\u5916\u306e\u30af\u30a8\u30ea\u306b\u5bfe\u3057\u3066\u306f\u3001\u5143\u306e\u30b3\u30fc\u30c9\u304c\u52d5\u304f\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; highlight: [40,41,42,43,44,48,49,50,51,52,53,54]; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\n\r\nnamespace App\\Providers;\r\n\r\nuse Illuminate\\Auth\\EloquentUserProvider;\r\nuse Illuminate\\Support\\Str;\r\n\r\nclass Md5UserProvider extends EloquentUserProvider\r\n{\r\n    \/**\r\n     * Retrieve a user by the given credentials.\r\n     *\r\n     * @param  array  $credentials\r\n     * @return \\Illuminate\\Contracts\\Auth\\Authenticatable|null\r\n     *\/\r\n    public function retrieveByCredentials(array $credentials)\r\n    {\r\n        if (empty($credentials) ||\r\n           (count($credentials) === 1 &amp;&amp;\r\n            Str::contains($this-&gt;firstCredentialKey($credentials), 'password'))) {\r\n            return;\r\n        }\r\n\r\n        \/\/ First we will add each credential element to the query as a where clause.\r\n        \/\/ Then we can execute the query and, if we found a user, return it in a\r\n        \/\/ Eloquent User &quot;model&quot; that will be utilized by the Guard instances.\r\n        $query = $this-&gt;newModelQuery();\r\n\r\n        $email = null;\r\n        foreach ($credentials as $key =&gt; $value) {\r\n            if (Str::contains($key, 'password')) {\r\n                continue;\r\n            }\r\n\r\n            if (is_array($value) || $value instanceof Arrayable) {\r\n                $query-&gt;whereIn($key, $value);\r\n            } elseif ($value instanceof Closure) {\r\n                $value($query);\r\n            } else {\r\n                if ($key == 'email') {\r\n                    $email = $value;\r\n                    $key = 'md5';\r\n                    $value = md5($value);\r\n                }\r\n                $query-&gt;where($key, $value);\r\n            }\r\n        }\r\n        if (!empty($email)) {\r\n            $results = $query-&gt;get();\r\n            foreach ($results as $u) {\r\n                if ($u-&gt;email == $email) return $u;\r\n            }\r\n            return;\r\n        }\r\n        return $query-&gt;first();\r\n    }\r\n}\r\n<\/pre>\n<p>\u3067\u306f\u3001\u5f93\u6765\u306f EloquentUserProvider \u304c\u547c\u3073\u51fa\u3055\u308c\u3066\u3044\u305f\u3068\u3053\u308d\u3092\u3001Md5UserProvier \u304c\u547c\u3073\u51fa\u3055\u308c\u308b\u3088\u3046\u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u3001<a href=\"https:\/\/laravel.com\/docs\/8.x\/authentication#adding-custom-user-providers\">\u3053\u3053\u3089\u3078\u3093<\/a>\u306b\u66f8\u304b\u308c\u3066\u307e\u3059\u3002<\/p>\n<p>app\/Providers\/AuthServiceProvider \u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; highlight: [31,32,33]; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\n\r\nnamespace App\\Providers;\r\n\r\nuse Illuminate\\Foundation\\Support\\Providers\\AuthServiceProvider as ServiceProvider;\r\nuse Illuminate\\Support\\Facades\\Gate;\r\nuse Illuminate\\Support\\Facades\\Auth;\r\n\r\nuse App\\Providers\\Md5UserProvider;\r\n\r\nclass AuthServiceProvider extends ServiceProvider\r\n{\r\n    \/**\r\n     * The policy mappings for the application.\r\n     *\r\n     * @var array\r\n     *\/\r\n    protected $policies = &#x5B;\r\n        \/\/ 'App\\Model' =&gt; 'App\\Policies\\ModelPolicy',\r\n    ];\r\n\r\n    \/**\r\n     * Register any authentication \/ authorization services.\r\n     *\r\n     * @return void\r\n     *\/\r\n    public function boot()\r\n    {\r\n        $this-&gt;registerPolicies();\r\n\r\n        Auth::provider('md5', function($app, array $config) {\r\n            return new Md5UserProvider($app&#x5B;'hash'], $config&#x5B;'model']);\r\n        });\r\n    }\r\n}\r\n<\/pre>\n<p>\u3042\u3068\u306f\u3001config\/auth.php \u3092\u4fee\u6b63\u3059\u308c\u3070\u7d42\u308f\u308a\u3067\u3059\u3002<br \/>\n\u6a19\u6e96\u306e driver \u306e eloquent \u3092\u3001\u4e0a\u3067\u4f5c\u6210\u3057\u305f md5 \u306b\u5909\u66f4\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre class=\"brush: php; highlight: [20,21]; title: ; notranslate\" title=\"\">\r\n    \/*\r\n    |--------------------------------------------------------------------------\r\n    | User Providers\r\n    |--------------------------------------------------------------------------\r\n    |\r\n    | All authentication drivers have a user provider. This defines how the\r\n    | users are actually retrieved out of your database or other storage\r\n    | mechanisms used by this application to persist your user's data.\r\n    |\r\n    | If you have multiple user tables or models you may configure multiple\r\n    | sources which represent each model \/ table. These sources may then\r\n    | be assigned to any extra authentication guards you have defined.\r\n    |\r\n    | Supported: &quot;database&quot;, &quot;eloquent&quot;\r\n    |\r\n    *\/\r\n\r\n    'providers' =&gt; &#x5B;\r\n        'users' =&gt; &#x5B;\r\n            \/\/'driver' =&gt; 'eloquent',\r\n            'driver' =&gt; 'md5',\r\n            'model' =&gt; App\\User::class,\r\n        ],\r\n\r\n        \/\/ 'users' =&gt; &#x5B;\r\n        \/\/     'driver' =&gt; 'database',\r\n        \/\/     'table' =&gt; 'users',\r\n        \/\/ ],\r\n    ],\r\n<\/pre>\n<p>\u3053\u308c\u3067\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u6697\u53f7\u5316\u3057\u3066\u3044\u3066\u3082\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u518d\u8a2d\u5b9a\u7528\u30ea\u30f3\u30af\u306e\u9001\u4fe1\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u3001Laravel\u304b\u3089DB\u306b\u683c\u7d0d\u3059\u308b\u30c7\u30fc\u30bf\u3092\u6697\u53f7\u5316\u30fb\u5fa9\u53f7\u3059\u308b\u65b9\u6cd5\u3068\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306eunique\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u554f\u984c\u3068\u3044\u3046\u306e\u3092\u66f8\u304d\u307e\u3057\u305f\u3002 \u3053\u308c\u3067\u5927\u4e08\u592b\u304b\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u6697\u53f7\u5316\u3057\u305f\u305f &#8230; <\/p>\n","protected":false},"author":1,"featured_media":63,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[14,76,62,61],"class_list":["post-204","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-laravel","tag-76","tag-62","tag-61"],"nelio_content":{"autoShareEndMode":"never","automationSources":{"useCustomSentences":false,"customSentences":[]},"efiAlt":"","efiUrl":"","followers":[1],"highlights":[],"isAutoShareEnabled":true,"networkImageIds":[],"permalinkQueryArgs":[],"series":[],"suggestedReferences":[]},"views":5122,"_links":{"self":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=204"}],"version-history":[{"count":7,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/204\/revisions"}],"predecessor-version":[{"id":213,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/204\/revisions\/213"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/media\/63"}],"wp:attachment":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}