{"id":11235,"date":"2022-12-26T07:00:25","date_gmt":"2022-12-25T22:00:25","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=11235"},"modified":"2022-12-17T19:57:45","modified_gmt":"2022-12-17T10:57:45","slug":"laravel-react-%e3%81%ae%e3%83%a1%e3%83%bc%e3%83%ab%e9%80%81%e4%bf%a1-feature%e3%83%86%e3%82%b9%e3%83%88%e3%82%92%e3%81%a4%e3%81%8f%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=11235","title":{"rendered":"Laravel + React \u306e\u30e1\u30fc\u30eb\u9001\u4fe1 Feature\u30c6\u30b9\u30c8\u3092\u3064\u304f\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u5c11\u3057\u524d\u306b\u500b\u4eba\u7684\u306a\u30b5\u30a4\u30c8\u3092\u3064\u304f\u3063\u3066\u516c\u958b\u3057\u305f\u3093\u3067\u3059\u304c\u3001\u305d\u306e\u969b\u306b\u300c<strong>\u3042\u308c\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3063\u3066\u3069\u3046\u66f8\u304f\u3093\u3060\u3063\u3051<\/strong>\u2753\u2753\u300d\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u79c1\u304c\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u597d\u304d\u306a\u306e\u3067\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3001DB\u8a2d\u8a08\u3001\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u306a\u3069\u3044\u308d\u3093\u306a\u3053\u3068\u306b\u89e6\u308c\u308b\u6a5f\u4f1a\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u3046\u306a\u308b\u3068\u305f\u307e\u306b\u300c<strong>\u30c8\u30b3\u30ed\u30c6\u30f3\u65b9\u5f0f<\/strong>\u300d\u3067\u3059\u3063\u307d\u308a\u629c\u3051\u843d\u3061\u3066\u3057\u307e\u3063\u305f\u308a\u3057\u307e\u3059\u2026\ud83d\ude2b<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u305b\u3063\u304b\u304f\u3044\u3044\u6a5f\u4f1a\u306a\u306e\u3067\u6700\u8fd1\u5927\u597d\u304d\u306a\u300c<strong>Laravel + React<\/strong>\u300d\u3067\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u300c<strong>Feature \u30c6\u30b9\u30c8<\/strong>\u300d\u3092\u3064\u304f\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-3405\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18.png\" alt=\"\" width=\"310\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18.png 310w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18-291x300.png 291w\" sizes=\"auto, (max-width: 310px) 100vw, 310px\" \/><br \/>\n\u300c\u5bd2\u304f\u3066\u5916\u51fa\u3057\u306a\u3044\u306e\u3067<br \/>\n\u3059\u3063\u3054\u304f\u904b\u52d5\u4e0d\u8db3\u2026<br \/>\n\u30c9\u30e9\u30e0\u3068\u304b\u3063\u3066\u904b\u52d5\u306b\u306a\u308b\u306e\u304b\u306a\ud83e\udd14\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 9.x\u3001React\u3001Vite\u3001Inertia.js\u3001TailwindCSS<\/p>\n<h1>Feature \u30c6\u30b9\u30c8\u3068\u306f\uff1f\uff1f<\/h1>\n<p>\u3044\u308d\u3044\u308d\u306a\u5b9a\u7fa9\u304c\u3042\u308b\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u8a00\u3046\u300c<strong>Feature \u30c6\u30b9\u30c8<\/strong>\u300d\u3068\u306f\u3001\u300c<strong>\u3068\u3042\u308b\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\uff08\u30c7\u30fc\u30bf\u9001\u4fe1\uff09\u3092\u3057\u305f\u3089\u3069\u3046\u306a\u3063\u305f\uff1f<\/strong>\u300d\u3068\u3044\u3046\u3088\u3046\u306a\u8907\u6570\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u9023\u52d5\u3059\u308b\u30c6\u30b9\u30c8\u3068\u3057\u3066\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u9006\u306b\u300c\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u300d\u306f\u3001\u95a2\u6570\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u3072\u3068\u3064\u305a\u3064\u30c1\u30a7\u30c3\u30af\u3059\u308b\u30c6\u30b9\u30c8\u3067\u3059\u3002\uff08\u4eca\u56de\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306f\u884c\u3044\u307e\u305b\u3093\uff09<\/p>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p>\u4ee5\u524d\u3053\u306e\u30d6\u30ed\u30b0\u3067\u516c\u958b\u3057\u305f <a href=\"https:\/\/blog.capilano-fw.com\/?p=11056\" target=\"_blank\" rel=\"noopener\">Laravel + React \u3067\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u3092\u3064\u304f\u308b<\/a> \u3068\u3044\u3046\u8a18\u4e8b\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u306e \u300c<strong>Feature \u30c6\u30b9\u30c8<\/strong>\u300d\u3092\u4f5c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u30c6\u30b9\u30c8\u3059\u308b\u5185\u5bb9\u306f\u4ee5\u4e0b\uff12\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u3061\u3083\u3093\u3068\u30e1\u30fc\u30eb\u9001\u4fe1\u304c\u5b9f\u884c\u3055\u308c\u305f\u304b \ud83e\udd14<\/li>\n<li>\u30e1\u30fc\u30eb\u9001\u4fe1\u5185\u5bb9\u304c\u6b63\u3057\u3044\u304b \ud83e\udd14<\/li>\n<\/ul>\n<p>\u305d\u3057\u3066\u3001\u7d39\u4ecb\u3057\u305f\u300c<strong>\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0<\/strong>\u300d\u306e\u6d41\u308c\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u306b\u5165\u529b<\/li>\n<li>\u9001\u4fe1<\/li>\n<li>\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u5f15\u3063\u304b\u304b\u3063\u305f\u3089\u524d\u306e\u30da\u30fc\u30b8\u3078\u3001\u554f\u984c\u306a\u3051\u308c\u3070\u5b8c\u4e86\u30da\u30fc\u30b8\u3078\u305d\u308c\u305e\u308c\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b<\/li>\n<\/ol>\n<p>\u3067\u306f\u3001\u3053\u308c\u3089\u3092\u8e0f\u307e\u3048\u3066\u697d\u3057\u304f\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<h1>\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u30d5\u30a1\u30a4\u30eb\u3092\u3064\u304f\u308b<\/h1>\n<p>\u307e\u305a\u306f\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u305f\u3081\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:test ContactTest<\/strong><\/pre>\n<p>\u203b \u306a\u304a\u3001\u4eca\u56de\u306f<code>ContactTest<\/code>\u3068\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u4eca\u56de\u306e\u30c6\u30fc\u30de\u304c\u300c<strong>\u304a\u554f\u3044\u5408\u308f\u305b<\/strong>\u300d\u306a\u306e\u3067\u300c<strong>Contact<\/strong>\u300d\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u540d\u524d\u306f\u81ea\u7531\u306b\u5909\u66f4\u3057\u3066\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3060\u3001<code>****Test<\/code>\u3068\u3057\u3066\u304a\u3044\u305f\u65b9\u304c\u691c\u7d22\u3057\u3084\u3059\u3044\u306e\u3067\u304a\u3059\u3059\u3081\u3067\u3059\ud83d\udc4d<\/p>\n<p>\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3053\u306e\u4e2d\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11236\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_1.png\" alt=\"\" width=\"307\" height=\"217\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_1.png 307w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_1-300x212.png 300w\" sizes=\"auto, (max-width: 307px) 100vw, 307px\" \/><\/p>\n<h1>\u300c\u3061\u3083\u3093\u3068\u30e1\u30fc\u30eb\u9001\u4fe1\u304c\u5b9f\u884c\u3055\u308c\u305f\u304b\u300d\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9<\/h1>\n<p>\u3067\u306f\uff11\u3064\u76ee\u306e\u30c6\u30b9\u30c8\u300c<strong>\u30e1\u30fc\u30eb\u9001\u4fe1\u304c\u5b9f\u884c\u3055\u308c\u305f\u304b\u3069\u3046\u304b\uff1f<\/strong>\u300d\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u306a\u304a\u3001\u4eca\u56de\u306f\u4ee5\u524d\u306e\u8a18\u4e8b\u3067\u7528\u610f\u3057\u305f\u4ee5\u4e0b\uff14\u3064\u306e\u300c<strong>\u304a\u554f\u3044\u5408\u308f\u305b\u306e\u7a2e\u985e<\/strong>\u300d\u3059\u3079\u3066\u9001\u4fe1\u3067\u304d\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002\uff08\u3064\u307e\u308a\uff14\u56de\u30e1\u30fc\u30eb\u9001\u4fe1\u3057\u307e\u3059\uff09<\/p>\n<ul>\n<li>\u5546\u54c1\u306b\u95a2\u3059\u308b\u304a\u554f\u3044\u5408\u308f\u305b<\/li>\n<li>\u3054\u6ce8\u6587\u306b\u95a2\u3059\u308b\u304a\u554f\u3044\u5408\u308f\u305b<\/li>\n<li>\u30b5\u30dd\u30fc\u30c8\u306b\u95a2\u3059\u308b\u304a\u554f\u3044\u5408\u308f\u305b<\/li>\n<li>\u305d\u306e\u4ed6\u306e\u304a\u554f\u3044\u5408\u308f\u305b<\/li>\n<\/ul>\n<p><strong>tests\/Feature\/ContactTest.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace Tests\\Feature;\r\n\r\n<strong>use App\\Enums\\ContactType;<\/strong>\r\n<strong>use App\\Mail\\Contacted;<\/strong>\r\nuse Illuminate\\Foundation\\Testing\\RefreshDatabase;\r\nuse Illuminate\\Foundation\\Testing\\WithFaker;\r\n<strong>use Illuminate\\Support\\Facades\\Mail;<\/strong>\r\n<strong>use Illuminate\\Support\\Str;<\/strong>\r\nuse Tests\\TestCase;\r\n\r\nclass ContactTest extends TestCase\r\n{\r\n    <strong>public function test_can_send_contact_emails()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        Mail::fake(); \/\/ \u5b9f\u969b\u306b\u306f\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b<\/strong>\r\n\r\n<strong>        $contact_types = ContactType::collection();<\/strong>\r\n<strong>        $uri = route('contact.store');<\/strong>\r\n\r\n<strong>        foreach ($contact_types as $index =&gt; $contact_type) {<\/strong>\r\n\r\n<strong>            $subject_id = $contact_type['id'];<\/strong>\r\n<strong>            $params = [<\/strong>\r\n<strong>                'subject_id' =&gt; $subject_id,<\/strong>\r\n<strong>                'name' =&gt; Str::random(10),<\/strong>\r\n<strong>                'email' =&gt; Str::random(10) .'@example.com',<\/strong>\r\n<strong>                'message' =&gt; '\u30c6\u30b9\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3059\uff01 \u305d\u306e '. $index + 1,<\/strong>\r\n<strong>                'url' =&gt; 'https:\/\/example.com\/'. Str::random(10),<\/strong>\r\n<strong>            ];<\/strong>\r\n<strong>            $response = $this-&gt;post($uri, $params);<\/strong>\r\n\r\n<strong>            $response-&gt;assertStatus(302) \/\/ \u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e HTTP \u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u3060\u3063\u305f\uff1f<\/strong>\r\n<strong>                -&gt;assertLocation(route('contact.complete')); \/\/ \u5b8c\u4e86\u30da\u30fc\u30b8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u305f\uff1f<\/strong>\r\n\r\n<strong>            $sent_count = $index + 1;<\/strong>\r\n<strong>            Mail::assertSent(Contacted::class, $sent_count); \/\/ \u30e1\u30fc\u30eb\u3055\u308c\u305f\u56de\u6570\u304c\u5408\u3063\u3066\u308b\uff1f<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n<strong>    }<\/strong>\r\n    \r\n    \/\/ \u3053\u3053\u306b\u6b21\u306e\u30c6\u30b9\u30c8\u3092\u66f8\u304d\u307e\u3059\u3002\r\n}<\/pre>\n<p>\u3067\u306f\u3072\u3068\u3064\u305a\u3064\u4e2d\u8eab\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001<code>Mail::fake()<\/code>\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u30c6\u30b9\u30c8\u7528\u306b\u7528\u610f\u3055\u308c\u305f\u3082\u306e\u3067\u5b9f\u969b\u306b\u306f\u30e1\u30fc\u30eb\u9001\u4fe1\u3055\u308c\u308b\u3053\u3068\u306f\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u30e9\u30f3\u30c0\u30e0\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4f5c\u6210\uff06\u9001\u4fe1\u3057\u305f\u3042\u3068\u300c<strong>\u3061\u3083\u3093\u3068\u3067\u304d\u3066\u308b\uff1f<\/strong>\u300d\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30fc\u30c9\u3092\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u4ee5\u4e0b\u306e\u90e8\u5206\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u9001\u4fe1\u3057\u305f\u969b\u306b\u30da\u30fc\u30b8\u304c\u8fd4\u3057\u3066\u304d\u305f\u300cHTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u300d\u304c302\uff08\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\uff09\u3057\u3066\u308b\u304b\u3069\u3046\u304b\u306e\u30c1\u30a7\u30c3\u30af\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><strong>-&gt;assertStatus(302)<\/strong><\/pre>\n<p>\u203b HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u306e\u4e00\u89a7\u306f\u3001<a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/HTTP\/Status\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u306a\u306e\u306f\u4eca\u56de\u306e\u5834\u5408\u306f\u300c<strong>\u3069\u3061\u3089\u306b\u3057\u3066\u3082302\u304c\u8fd4\u3063\u3066\u304f\u308b<\/strong>\u300d\u3068\u3044\u3046\u90e8\u5206\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u5931\u6557\u3057\u3066\u3082<code>302<\/code>\u306b\u306a\u308b\u3093\u3067\u3059\u306d\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u4eca\u56de\u306f<code>assertStatus()<\/code>\u306f\u4e0d\u8981\u3067\u3059\u304c\u3001\u4ed6\u306e\u30c6\u30b9\u30c8\u3067\u306f\u3088\u304f\u4f7f\u3046\u306e\u3067\u3042\u3048\u3066\u7d39\u4ecb\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\uff08\u4eca\u56de\u306f\u4f8b\u304c\u60aa\u304b\u3063\u305f\u304b\u3082\u3067\u3059\u2026\ud83d\ude05\uff09<\/p>\n<p>\u305d\u3053\u3067\u6b21\u306e\u300c<strong>\u79fb\u52d5\u5148\u306f\u5408\u3063\u3066\u308b\uff1f<\/strong>\u300d\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><strong>-&gt;assertLocation(route('contact.complete'))<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001\u6700\u5f8c\u306b\u300c<strong>\u3061\u3083\u3093\u3068\u30e1\u30fc\u30eb\u9001\u4fe1\u3067\u304d\u305f\uff1f<\/strong>\u300d\u30c1\u30a7\u30c3\u30af\u3067\u3059\u3002<\/p>\n<pre><strong>$sent_count = $index + 1;<\/strong>\r\n<strong>Mail::assertSent(Contacted::class, $sent_count); \/\/ \u30e1\u30fc\u30eb\u3055\u308c\u305f\u56de\u6570\u304c\u5408\u3063\u3066\u308b\uff1f<\/strong><\/pre>\n<p><code>Mail::assertSent()<\/code>\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f<code>Mailable<\/code>\u304c\u4f55\u56de\u9001\u4fe1\u3055\u308c\u305f\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u4eca\u56de\u306f\u5168\u90e8\u3067\uff14\u56de\u9001\u4fe1\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001\u305d\u306e\u90fd\u5ea6\u6570\u5024\u3092<code>$sent_count<\/code>\u306b\u5165\u308c\u3066\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u30c6\u30b9\u30c8\u3057\u3066\u307f\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<pre><strong>php artisan test --filter ContactTest<\/strong><\/pre>\n<p>\u203b \u306a\u304a\u3001<code>--filter<\/code>\u3092\u4f7f\u3046\u3068\u30c6\u30b9\u30c8\u3057\u305f\u3044\u3082\u306e\u3060\u3051\u5b9f\u884c\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001<code>test_can_send_contact_emails<\/code>\u3068\u3044\u3046\u3088\u3046\u306a\u30e1\u30bd\u30c3\u30c9\u540d\u3067\u3082OK\u3067\u3059\ud83d\udc4d<\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11237\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_2.png\" alt=\"\" width=\"363\" height=\"178\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_2.png 363w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_2-300x147.png 300w\" sizes=\"auto, (max-width: 363px) 100vw, 363px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u30c6\u30b9\u30c8\u306b\u5408\u683c\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u30c6\u30b9\u30c8\u306e\u30c6\u30b9\u30c8\uff1f\uff08\ud83d\ude02\uff09\u3068\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u308f\u3056\u3068\u9593\u9055\u3063\u305f\u6570\u5024\u3092\u5165\u308c\u3066\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3069\u3046\u306a\u3063\u305f\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<pre><strong>$sent_count = 99999; \/\/ \ud83d\udc48 \u3042\u308a\u3048\u306a\u3044\u6570\u5024\u3067\u56fa\u5b9a<\/strong>\r\nMail::assertSent(Contacted::class, $sent_count);<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11238\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_3.png\" alt=\"\" width=\"488\" height=\"288\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_3.png 488w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_3-300x177.png 300w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u898b\u308b\u304b\u3089\u306b\u30a8\u30e9\u30fc\u767a\u751f\u3001\u3068\u3044\u3046\u8868\u793a\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u3082\u3057\u82f1\u8a9e\u304c\u5f97\u610f\u3067\u306a\u3044\u5834\u5408\u306f\u3042\u307e\u308a\u8aad\u307f\u305f\u304f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3042\u308b\u7a0b\u5ea6\u304d\u3061\u3093\u3068\u7406\u7531\u3092\u66f8\u3044\u3066\u304f\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u3053\u3092\u624b\u304c\u304b\u308a\u306b\u3057\u3066\u4f55\u304c\u30c0\u30e1\u306a\u306e\u304b\u3092\u5224\u65ad\u3059\u308b\u3068\u958b\u767a\u3092\u52b9\u7387\u5316\u3067\u304d\u308b\u3067\u3057\u3087\u3046\ud83d\udc4d\uff08<code>DeepL<\/code>\u3067\u7ffb\u8a33\u3059\u308b\u306e\u3082\u3042\u308a\u3067\u3059\u306d\uff09<\/p>\n<h1>\u30e1\u30fc\u30eb\u9001\u4fe1\u5185\u5bb9\u304c\u6b63\u3057\u3044\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9<\/h1>\n<p>\u7d9a\u3044\u3066\u3001\u30e1\u30fc\u30eb\u306e\u9001\u4fe1\u5185\u5bb9\u304c\u6b63\u3057\u3044\u306e\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002<br \/>\n\u5148\u307b\u3069\u3068\u540c\u3058\u304f\uff14\u30d1\u30bf\u30fc\u30f3\u306e\u30e1\u30fc\u30eb\u6587\u9762\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>tests\/Feature\/ContactTest.php<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\nclass ContactTest extends TestCase\r\n{\r\n    \/\/ \u7701\u7565\r\n\r\n    <strong>public function test_can_confirm_correct_email_content()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $contact_types = ContactType::collection();<\/strong>\r\n\r\n<strong>        foreach ($contact_types as $index =&gt; $contact_type) {<\/strong>\r\n\r\n<strong>            $subject = $contact_type['name'];<\/strong>\r\n<strong>            $params = [<\/strong>\r\n<strong>                'subject' =&gt; $subject,<\/strong>\r\n<strong>                'name' =&gt; Str::random(10),<\/strong>\r\n<strong>                'email' =&gt; Str::random(10) .'@example.com',<\/strong>\r\n<strong>                'message' =&gt; '\u30c6\u30b9\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3059\uff01 \u305d\u306e '. $index + 1,<\/strong>\r\n<strong>                'url' =&gt; 'https:\/\/example.com\/'. Str::random(10),<\/strong>\r\n<strong>            ];<\/strong>\r\n<strong>            $mailable = new Contacted($params);<\/strong>\r\n\r\n<strong>            foreach ($params as $value) {<\/strong>\r\n\r\n<strong>                $mailable-&gt;assertSeeInHtml($value); \/\/ \u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u30e1\u30fc\u30eb\u306b\u542b\u307e\u308c\u3066\u308b\uff1f<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u30c6\u30b9\u30c8\u3067\u4f7f\u3063\u3066\u3044\u308b\u306e\u306f\u3001<code>Mailable<\/code>\u306e\u30c1\u30a7\u30c3\u30af\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u4eca\u56de\u306e\u4f8b\u3067\u3044\u3046\u3068\uff14\u3064\u4f5c\u6210\u3055\u308c\u308b\u30e1\u30fc\u30eb\u6587\u9762\u306b\u5404\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3092\u4ee5\u4e0b\u306e\u30eb\u30fc\u30d7\u5185\u306b\u3042\u308b<code>assertSeeInHtml<\/code>\u3067\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>foreach ($params as $value) {\r\n\r\n    <strong>$mailable-&gt;assertSeeInHtml($value); \/\/ \ud83d\udc48 \u3053\u3053<\/strong>\r\n\r\n}<\/pre>\n<p>\u3067\u306f\u3001\u3053\u3063\u3061\u306e\u30c6\u30b9\u30c8\u3082\u5b9f\u884c\u3057\u3066\u307f\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<pre><strong>php artisan test --filter test_can_send_contact_emails<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11240\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_4.png\" alt=\"\" width=\"392\" height=\"162\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_4.png 392w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_4-300x124.png 300w\" sizes=\"auto, (max-width: 392px) 100vw, 392px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\ud83d\udc4d<\/p>\n<p>\u3067\u306f\u3001\u4eca\u56de\u3082\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5f37\u5236\u7684\u306b\u3042\u308a\u3048\u306a\u3044\u6587\u5b57\u5217\u3092\u3044\u308c\u3066\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>$mailable-&gt;assertSeeInHtml(\"\u3042\u308a\u3048\u306a\u3044\u6587\u5b57\u5217\u3067\u3059\uff01\uff01\");<\/strong><\/pre>\n<p>\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11243\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_5.png\" alt=\"\" width=\"492\" height=\"290\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_5.png 492w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_5-300x177.png 300w\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u540c\u3058\u304f\u7406\u7531\u3064\u304d\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002<\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude04<\/p>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u4e00\u6c17\u306b\u4eca\u56de\u3064\u304f\u3063\u305f\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan test --filter ContactTest<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11244\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_6.png\" alt=\"\" width=\"403\" height=\"206\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_6.png 403w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/11\/laravel_react_email_feature_test_6-300x153.png 300w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u30c6\u30b9\u30c8\u304c\uff12\u3064\u5b9f\u884c\u3055\u308c\u3001\u3069\u3061\u3089\u3082\u5408\u683c\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3059\u3079\u3066\u6210\u529f\u3067\u3059\u2728\ud83d\ude04\ud83d\udc4d<\/p>\n<h1>\u3061\u306a\u307f\u306b\uff11\uff1a \u30e1\u30fc\u30eb\u306b\u95a2\u3059\u308b\u305d\u306e\u4ed6\u306e\u30c1\u30a7\u30c3\u30af\u30e1\u30bd\u30c3\u30c9<\/h1>\n<p>\u4eca\u56de\u306f<code>assertSeeInHtml<\/code>\u306e\u307f\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u30e1\u30fc\u30eb\u5185\u5bb9\u306b\u3088\u3063\u3066\u306f\u4ed6\u306e\u3082\u306e\u3092\u4f7f\u3046\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002\u8a73\u3057\u304f\u306f <a href=\"https:\/\/laravel.com\/docs\/9.x\/mail#testing-mailables\" target=\"_blank\" rel=\"noopener\">\u672c\u5bb6\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a> \u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>assertSeeInHtml\uff1a HTML \u306b\u5165\u3063\u3066\u308b\u3088\u306d\uff1f<\/li>\n<li>assertDontSeeInHtml\uff1a HTML \u306b\u5165\u3063\u3066\u308b\u306a\u3044\u3088\u306d\uff1f<\/li>\n<li>assertSeeInOrderInHtml\uff1a HTML \u306b\u3053\u306e\u9806\u756a\u3067\u5165\u3063\u3066\u308b\u3088\u306d\uff1f<\/li>\n<li>assertSeeInText\uff1a \u30c6\u30ad\u30b9\u30c8\u306b\u5165\u3063\u3066\u308b\u3088\u306d\uff1f<\/li>\n<li>assertDontSeeInText\uff1a \u30c6\u30ad\u30b9\u30c8\u306b\u5165\u3063\u3066\u308b\u306a\u3044\u3088\u306d\uff1f<\/li>\n<li>assertSeeInOrderInText\uff1a \u30c6\u30ad\u30b9\u30c8\u306b\u3053\u306e\u9806\u756a\u3067\u5165\u3063\u3066\u308b\u3088\u306d\uff1f<\/li>\n<li>assertHasAttachment\uff1a \u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u3042\u308b\u3088\u306d\uff1f<\/li>\n<li>assertHasAttachedData\uff1a \u6dfb\u4ed8\u30c7\u30fc\u30bf\u3042\u308b\u3088\u306d\uff1f<\/li>\n<li>assertHasAttachmentFromStorage\uff1a \u30ed\u30fc\u30ab\u30eb\u30b9\u30c8\u30ec\u30fc\u30b8\u304b\u3089\u6dfb\u4ed8\u3055\u308c\u3066\u308b\u3088\u306d\uff1f<\/li>\n<li>assertHasAttachmentFromStorageDisk\uff1a \u30af\u30e9\u30a6\u30c9\u30b9\u30c8\u30ec\u30fc\u30b8\u304b\u3089\u6dfb\u4ed8\u3055\u308c\u3066\u308b\u3088\u306d\uff1f<\/li>\n<\/ul>\n<h1>\u3061\u306a\u307f\u306b\uff12\uff1a \u30c6\u30b9\u30c8\u306e\u3068\u304d\u3060\u3051\u30e1\u30fc\u30eb\u30c9\u30e9\u30a4\u30d0\u30fc\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408<\/h1>\n<p>\u3061\u306a\u307f\u306b\u30c6\u30b9\u30c8\u306e\u3068\u304d\u3060\u3051\u3001\u30e1\u30fc\u30eb\u30c9\u30e9\u30a4\u30d0\u30fc\uff08\u3069\u3046\u3084\u3063\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u51e6\u7406\u3059\u308b\u304b\uff09\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f<code>phpunit.xml<\/code>\u306e\u4e2d\u8eab\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>phpunit.xml<\/strong><\/p>\n<pre><strong>&lt;env name=\"MAIL_MAILER\" value=\"array\"\/&gt;<\/strong><\/pre>\n<p>\u4f8b\u3048\u3070\u3001<code>array<\/code>\u3060\u3051\u3067\u306a\u304f\u4ee5\u4e0b\u306e\u3082\u306e\u304c\u4f7f\u3048\u307e\u3059\u3002\uff082022.11.16 \u73fe\u5728\uff09<\/p>\n<ul>\n<li>smtp<\/li>\n<li>sendmail<\/li>\n<li>mailgun<\/li>\n<li>ses<\/li>\n<li>postmark<\/li>\n<li>log<\/li>\n<li>array<\/li>\n<li>failover<\/li>\n<\/ul>\n<p>\u203b \u305f\u3060\u3057\u3001<code>Mail::fake()<\/code>\u3092\u4f7f\u3046\u3068\u30e1\u30fc\u30eb\u9001\u4fe1\u81ea\u4f53\u304c\u5b9f\u884c\u3055\u308c\u306a\u304f\u306a\u308b\u306e\u3067\u3001\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u203b \u30e1\u30fc\u30eb\u5411\u3051\u306e\u8a2d\u5b9a\u3060\u3051\u3067\u306a\u304f\u4ed6\u306e\u74b0\u5883\u5909\u6570\u3082\u3053\u3053\u3067\u30bb\u30c3\u30c8\u3067\u304d\u307e\u3059\u3088\ud83d\udc4d<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306e\u3088\u3046\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u304a\u304f\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30d0\u30b0\u3084\u4e0d\u5177\u5408\u306e\u5c11\u306a\u3044\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3067\u304d\u308b<\/li>\n<li>\u5168\u304f\u95a2\u4fc2\u304c\u306a\u3055\u305d\u3046\u3067\u3082\u5b9f\u306f\u5225\u306e\u30b3\u30fc\u30c9\u304c\u5b9f\u884c\u3055\u308c\u308b\u5834\u5408\u306f\u591a\u3044\u3082\u306e\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u958b\u767a\u3092\u9032\u3081\u308b\u5ea6\u306b\u30c6\u30b9\u30c8\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u300c\u904e\u53bb\u306e\u30b3\u30fc\u30c9\u300d\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u3044\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/li>\n<li>\u30c1\u30fc\u30e0\u3067\u958b\u767a\u3092\u3059\u308b\u5834\u5408\u3001\u81ea\u5206\u4ee5\u5916\u306e\u958b\u767a\u8005\u304c\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u306b\u60aa\u5f71\u97ff\u3092\u4e0e\u3048\u3066\u3057\u307e\u3046\u5834\u5408\u3082\u8003\u3048\u3089\u308c\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u304c\u3057\u3063\u304b\u308a\u3057\u3066\u3044\u308c\u3070\u4ed6\u306e\u958b\u767a\u8005\u306b\u300c\u66f8\u304f\u3079\u304d\u3067\u306f\u306a\u3044\u30b3\u30fc\u30c9\u300d\u3068\u3057\u3066\u77e5\u3089\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3057\u3001\u672a\u77e5\u306e\u9593\u9055\u3044\u3092\u767a\u898b\u3059\u308b\u3053\u3068\u306b\u3082\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u3082\u3057\u305d\u3046\u3044\u3063\u305f\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u3054\u7528\u610f\u3055\u308c\u305f\u3044\u5834\u5408\u306f\u305c\u3072\u304a\u554f\u3044\u5408\u308f\u305b\u304b\u3089\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\u3002m(_ _)m<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u3044\u3064\u3082\u3068\u9055\u3044\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3057\u3066\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b63\u76f4\u306a\u3068\u3053\u308d\u3001\u3042\u307e\u308a\u30c6\u30b9\u30c8\u3092\u66f8\u304f\u306e\u304c\u597d\u304d\u3067\u306f\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u300c<strong>\u304a\u304a\u3063\u2757 \u6614\u306e\u79c1\u3088\u3001\u3042\u308a\u304c\u3068\u3046\ud83d\ude04\u2728<\/strong>\u300d\u3068\u306a\u3063\u305f\u7d4c\u9a13\u3092\u3057\u3066\u304b\u3089\u306f\u3080\u3057\u308d\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u306e\u304c\u597d\u304d\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305c\u3072\u307f\u306a\u3055\u3093\u3082\u300c<strong>\u6642\u9593\u3092\u8d85\u3048\u305f\u904e\u53bb\u306e\u81ea\u5206\u3078\u306e\u3042\u308a\u304c\u3068\u3046<\/strong>\u300d\u3092\u4f53\u9a13\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\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-4445\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_2.png\" alt=\"\" width=\"370\" height=\"310\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_2.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_2-300x251.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><br \/>\n\u300c\u904e\u53bb\u306e\u81ea\u5206\u3078\u306e<br \/>\n\u3082\u3046\u3072\u3068\u3064\u306e\u611f\u8b1d\u306f<br \/>\n\u5927\u91d1\u6255\u3063\u3066\u6d77\u5916\u7559\u5b66\u3057\u305f\u3053\u3068\u3067\u3059\ud83d\udc4d\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u5c11\u3057\u524d\u306b\u500b\u4eba\u7684\u306a\u30b5\u30a4\u30c8\u3092\u3064\u304f\u3063\u3066\u516c\u958b\u3057\u305f\u3093\u3067\u3059\u304c\u3001\u305d\u306e\u969b\u306b\u300c\u3042\u308c\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3063\u3066\u3069\u3046\u66f8\u304f\u3093\u3060\u3063\u3051\u2753\u2753\u300d\u3068\u306a\u308a\u307e\u3057\u305f\u3002 \u79c1\u304c\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u597d &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=11235\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel + React \u306e\u30e1\u30fc\u30eb\u9001\u4fe1 Feature\u30c6\u30b9\u30c8\u3092\u3064\u304f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":11251,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[247,3,118,249,248],"tags":[],"class_list":["post-11235","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-inertia-js","category-laravel","category-react-js","category-tailwind-css","category-vite"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11235","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=11235"}],"version-history":[{"count":11,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11235\/revisions"}],"predecessor-version":[{"id":11254,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11235\/revisions\/11254"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/11251"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}