{"id":12488,"date":"2024-03-24T07:00:39","date_gmt":"2024-03-23T22:00:39","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=12488"},"modified":"2024-03-23T16:47:53","modified_gmt":"2024-03-23T07:47:53","slug":"laravel-%e3%81%a7%e3%80%8c%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%83%bb%e3%83%ac%e3%82%b9%e3%83%9d%e3%83%b3%e3%82%b9%e3%83%bb%e3%83%9e%e3%83%bc%e3%82%b1%e3%83%86%e3%82%a3%e3%83%b3%e3%82%b0","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=12488","title":{"rendered":"Laravel \u3067\u300c\u30c0\u30a4\u30ec\u30af\u30c8\u30fb\u30ec\u30b9\u30dd\u30f3\u30b9\u30fb\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u300d\u57fa\u790e\u30b7\u30b9\u30c6\u30e0\u3092\u3064\u304f\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u307e\u3060\u307e\u3060\u300c<strong>\u5e02\u5834\u4fa1\u5024\u306e\u9ad8\u3044\u30a8\u30f3\u30b8\u30cb\u30a2<\/strong>\u300d\u306b\u306a\u308a\u305f\u3044\u306e\u3067\u3001\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u77e5\u8b58\u3092\u8a70\u3081\u8fbc\u3093\u3067\u3044\u308b\u4eca\u65e5\u3053\u306e\u9803\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u3092\u52c9\u5f37\u3059\u308b\u306b\u3042\u305f\u3063\u3066\u3001\u3042\u308b\u91cd\u8981\u306a\u5358\u8a9e\u3092\u77e5\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">\u30c0\u30a4\u30ec\u30af\u30c8\u30fb\u30ec\u30b9\u30dd\u30f3\u30b9\u30fb\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\uff08DRM\uff09<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u3068\u3066\u3082\u7c21\u5358\u306b\u8a00\u3046\u3068\u3001\u300c<strong>\u4f55\u304b\u306b\u767b\u9332\u3057\u3066\u304f\u308c\u305f\u4eba\u3060\u3051\u306b\u30bb\u30fc\u30eb\u30b9\u3057\u3066\u3044\u304f<\/strong>\u300d\u3068\u3044\u3046\u624b\u6cd5\u3067\u3001\u30e1\u30eb\u30de\u30ac\u3068\u304b\u3060\u3068\u300c<strong>\u3053\u308c\u306f\u8cb7\u3046\u3057\u304b\u306a\u3044\u3063\u3057\u3087\uff01<\/strong>\u300d\u3068\u306a\u308b\u3088\u3046\u306b\u3001\u304a\u5ba2\u3055\u3093\u3092\u300c<strong>\u6559\u80b2<\/strong>\u300d\u3092\u3057\u305f\u308a\u3059\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u305d\u306e<code>DRM<\/code>\u3092\u3059\u308b\u4e0a\u3067\u4eca\u56de\u306f\u6ce8\u76ee\u3057\u305f\u306e\u306f\u3001\u300c<strong>\u524d\u306f\u8cb7\u3063\u3066\u304f\u308c\u306a\u304b\u3063\u305f\u3088\u306d\u3002\u3082\u3046\u4e00\u56de\u8003\u3048\u3066\u307f\u306a\u3044\uff1f\uff1f\ud83d\ude04<\/strong>\u300d\u3068\uff12\u56de\u76ee\u306e\u30bb\u30fc\u30eb\u30b9\u3092\u3059\u308b\u300c<strong>\u30ea\u30bf\u30fc\u30b2\u30c6\u30a3\u30f3\u30b0<\/strong>\u300d\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u300c<strong>\u5272\u5f15\u3059\u308b\u304b\u3089\u8cb7\u308f\u306a\u3044\uff1f\uff1f<\/strong>\u300d\u3068\u304b\u30e1\u30fc\u30eb\u9001\u4fe1\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f\u3053\u306e\u300c<strong>\u5272\u5f15\u30af\u30fc\u30dd\u30f3\u30b3\u30fc\u30c9\u3064\u304d\u306e\u30e1\u30fc\u30eb\u6a5f\u80fd<\/strong>\u300d\u3092<code>Laravel<\/code>\u3067\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\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-4445 aligncenter\" 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\" \/>\u300c\u8feb\u4f51\u6a39\u793e\u9577\u306e<br \/>\n\u300e<a href=\"https:\/\/www.amazon.co.jp\/%E4%BA%BA%E7%94%9F%E6%94%BB%E7%95%A5%E3%83%AD%E3%83%BC%E3%83%89%E3%83%9E%E3%83%83%E3%83%97-%E3%80%8C%E5%80%8B%E3%80%8D%E3%81%A7%E8%87%AA%E7%94%B1%E3%82%92%E6%89%8B%E3%81%AB%E5%85%A5%E3%82%8C%E3%82%8B%E3%80%8C10%E3%80%8D%E3%81%AE%E7%8B%AC%E5%AD%A6%E6%88%A6%E7%95%A5-%E8%BF%AB-%E4%BD%91%E6%A8%B9\/dp\/4046048603\/ref=sr_1_1?adgrpid=107134425598&amp;dib=eyJ2IjoiMSJ9.73YK6jovrsUjnzBFoHYhnzcFQNyZ3Sho2QGXSB6-em70YyRtWWT4idqAt38WKTlqjTXTPbikrhoOzDo63GBoXJr7d2vUxnZ20RXOHSEaU3C27R3Q3KLMEUsNn99v8aBOrUwJwaJhXcaNaL95O6pkli0F65N0Ua_IJnoZ-LFugykIJr4T7N_ZXEiGKbEm1zdUBJEk6CNKkhjdzW5HFsfoittNP2CP6YQ0aQy4afJ4t-CzW4gMWLaziiK3cLkTpgJEgeMBFBmkuG23CtT9AMFh5mKgQrdeAMuWit4T2qL-3mE.bsM-vx7v8vZT0HNhWWS_nLTxF_0Vjm-bNTnR6Q2kuEU&amp;dib_tag=se&amp;gclid=CjwKCAiA3JCvBhA8EiwA4kujZncrnOqJmTF6lVLup3uC64dzT2HLRObzDeB4C9CK4HL8_H0ymKWjchoCaiQQAvD_BwE&amp;hvadid=678960098043&amp;hvdev=c&amp;hvlocphy=1009562&amp;hvnetw=g&amp;hvqmt=e&amp;hvrand=3371049535847910881&amp;hvtargid=kwd-929298887489&amp;hydadcr=1790_13657015&amp;jp-ad-ap=0&amp;keywords=%E4%BA%BA%E7%94%9F%E6%94%BB%E7%95%A5+%E3%83%AD%E3%83%BC%E3%83%89%E3%83%9E%E3%83%83%E3%83%97&amp;qid=1709463110&amp;sr=8-1\" target=\"_blank\" rel=\"noopener\">\u4eba\u751f\u653b\u7565\u30ed\u30fc\u30c9\u30de\u30c3\u30d7<\/a>\u300f<br \/>\n\u5177\u4f53\u7684\u3067\u30de\u30b8\u3067\u826f\u3044\u672c\u3067\u3057\u305f \ud83d\ude04\u2728\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 10.x<\/p>\n<h1>\u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>\u4eca\u56de\u306f\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u30e1\u30eb\u30de\u30ac\u767b\u9332\u3057\u305f\u3068\u3044\u3046\u60f3\u5b9a\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u300c<strong>\u4f55\u3092\u3057\u305f\u304b<\/strong>\u300d\u3092\uff11\u3064\u305a\u3064\u4fdd\u5b58\u3057\u3001\u305d\u306e\u5f8c\u300c<strong>\u7279\u5b9a\u306e\u884c\u52d5<\/strong>\u300d\u3092\u3057\u305f\u3068\u304d\u306b\u30e1\u30fc\u30eb\u3067\u30a2\u30d7\u30ed\u30fc\u30c1\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u5177\u4f53\u7684\u306a\u52d5\u304d\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u30e1\u30eb\u30de\u30ac\u306b\u767b\u9332\uff08\u767b\u9332\u90e8\u5206\u306f\u4eca\u56de\u7701\u7565\u3057\u307e\u3059\uff09<\/li>\n<li>\u300cSNS\u96c6\u5ba2\u300d\u306b\u8208\u5473\u304c\u51fa\u3066\u3001\u5546\u54c1\u30da\u30fc\u30b8\u3092\u898b\u306b\u6765\u305f\uff08\u3057\u304b\u3057\u3001\u8cfc\u5165\u306f\u3057\u306a\u304b\u3063\u305f\uff09<\/li>\n<li>\uff11\u30f6\u6708\u5f8c\u300cSNS\u96c6\u5ba2\u300d\u306e\u5546\u54c1\u30da\u30fc\u30b8\u3092\u307e\u305f\u898b\u306b\u6765\u305f<\/li>\n<li>\u671f\u9593\u9650\u5b9a\u306e\u5272\u5f15\u30af\u30fc\u30dd\u30f3\u3064\u304d\u30e1\u30fc\u30eb\u3092\u9001\u4fe1<\/li>\n<\/ol>\n<p>\u3067\u306f\u3001\u4eca\u56de\u3082\u697d\u3057\u3093\u3067\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<h1>\u884c\u52d5\u30bf\u30a4\u30d7\u306e Enum \u3092\u3064\u304f\u308b<\/h1>\n<p>\u307e\u305a\u306f\u300c<strong>\u30e6\u30fc\u30b6\u30fc\u304c\u3069\u3093\u306a\u884c\u52d5\u3092\u3057\u305f\u304b<\/strong>\u300d\u304c\u5206\u304b\u308b\u300c<strong>\u884c\u52d5\u30bf\u30a4\u30d7<\/strong>\u300d\u306e\u30ea\u30b9\u30c8\u3092\u3064\u304f\u3063\u3066\u3044\u3064\u3067\u3082\u53d6\u308a\u51fa\u305b\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>app\/Enums\/NewsletterUserActionType.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 NewsletterUserActionType: string<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    case Sns_Sales_Viewed = 'sns_sales_viewed'; \/\/ SNS\u96c6\u5ba2\u306e\u5546\u54c1\u30da\u30fc\u30b8\u3092\u898b\u305f<\/strong>\r\n\r\n<strong>    \/\/ \u305d\u306e\u884c\u52d5\u3082\u8ffd\u52a0\u3067\u304d\u307e\u3059<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<h1>DB \u307e\u308f\u308a\u3092\u3064\u304f\u308b<\/h1>\n<p>\u6b21\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u307e\u308f\u308a\u3067\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 artisan make:model NewsletterUser -ms\r\nphp artisan make:model NewsletterUserAction -m\r\n<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\uff15\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u305d\u308c\u305e\u308c\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30e2\u30c7\u30eb<\/h2>\n<\/div>\n<p><strong>app\/Models\/NewsletterUser.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Models;<\/strong>\r\n\r\n<strong>use Illuminate\\Database\\Eloquent\\Factories\\HasFactory;<\/strong>\r\n<strong>use Illuminate\\Database\\Eloquent\\Model;<\/strong>\r\n\r\n<strong>class NewsletterUser extends Model<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    use HasFactory;<\/strong>\r\n\r\n<strong>    protected $fillable = ['uuid', 'name', 'email'];<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<p><strong>app\/Models\/NewsletterUserAction.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Models;<\/strong>\r\n\r\n<strong>use Illuminate\\Database\\Eloquent\\Factories\\HasFactory;<\/strong>\r\n<strong>use Illuminate\\Database\\Eloquent\\Model;<\/strong>\r\n\r\n<strong>class NewsletterUserAction extends Model<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    use HasFactory;<\/strong>\r\n\r\n<strong>    protected $fillable = ['newsletter_user_id', 'action_type'];<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<h2>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3<\/h2>\n<p><strong>database\/migrations\/****_**_**_******_create_newsletter_users_table.php<\/strong><\/p>\n<div>\n<pre>\/\/ \u7701\u7565\r\n\r\npublic function up(): void\r\n{\r\n    <strong>Schema::create('newsletter_users', function (Blueprint $table) {\r\n        $table-&gt;id();\r\n        $table-&gt;uuid()-&gt;comment('\u30e6\u30cb\u30fc\u30afID');\r\n        $table-&gt;string('name')-&gt;comment('\u540d\u524d');\r\n        $table-&gt;string('email')-&gt;unique()-&gt;comment('\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9');\r\n        $table-&gt;timestamps();\r\n    });<\/strong>\r\n}\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<\/div>\n<p><strong>database\/migrations\/****_**_**_******_create_newsletter_user_actions_table.php<\/strong><\/p>\n<div>\n<pre>\/\/ \u7701\u7565\r\n\r\npublic function up(): void\r\n{\r\n    <strong>Schema::create('newsletter_user_actions', function (Blueprint $table) {\r\n        $table-&gt;id();\r\n        $table-&gt;unsignedBigInteger('newsletter_user_id')-&gt;comment('\u30e1\u30eb\u30de\u30ac\u30e6\u30fc\u30b6\u30fc ID'); \/\/ \u3053\u308c\u306f Cookie \u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b ID \u3092\u60f3\u5b9a\r\n        $table-&gt;string('action_type')-&gt;comment('\u30e6\u30fc\u30b6\u30fc\u306e\u884c\u52d5\u30bf\u30a4\u30d7'); \/\/ App\\Enums\\NewsletterUserActionType \u3067\u5b9a\u7fa9\r\n        $table-&gt;timestamps();\r\n\r\n        $table-&gt;foreign('newsletter_user_id')-&gt;references('id')-&gt;on('newsletter_users');\r\n    });<\/strong>\r\n}\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<\/div>\n<h2>Seeder<\/h2>\n<p><strong>database\/seeders\/NewsletterUserSeeder.php<\/strong><\/p>\n<div>\n<pre>\/\/\u3000\u7701\u7565\r\n\r\npublic function run(): void\r\n{\r\n    <strong>$names = [<\/strong>\r\n<strong>        'taro' =&gt; '\u592a\u90ce',<\/strong>\r\n<strong>        'jiro' =&gt; '\u6b21\u90ce',<\/strong>\r\n<strong>        'saburo' =&gt; '\u4e09\u90ce',<\/strong>\r\n<strong>        'shiro' =&gt; '\u56db\u90ce',<\/strong>\r\n<strong>        'goro' =&gt; '\u4e94\u90ce',<\/strong>\r\n<strong>        'rokuro' =&gt; '\u516d\u90ce',<\/strong>\r\n<strong>        'shichiro' =&gt; '\u4e03\u90ce',<\/strong>\r\n<strong>        'hachiro' =&gt; '\u516b\u90ce',<\/strong>\r\n<strong>        'kuro' =&gt; '\u4e5d\u90ce',<\/strong>\r\n<strong>    ];<\/strong>\r\n\r\n<strong>    foreach ($names as $name_en =&gt; $name_jp) {<\/strong>\r\n\r\n<strong>        $uuid = ($name_en === 'taro')<\/strong>\r\n<strong>            ? 'taro0000-0000-0000-0000-000000000000' \/\/ \u30c6\u30b9\u30c8\u306e\u305f\u3081\u3001\u592a\u90ce\u306e\u305f\u3081 \u56fa\u5b9a UUID<\/strong>\r\n<strong>            : Str::uuid();<\/strong>\r\n\r\n<strong>        NewsletterUser::create([<\/strong>\r\n<strong>            'uuid' =&gt; $uuid,<\/strong>\r\n<strong>            'name' =&gt; $name_jp,<\/strong>\r\n<strong>            'email' =&gt; $name_en .'@example.com',<\/strong>\r\n<strong>        ]);<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}\r\n\r\n\/\/\u3000\u7701\u7565<\/pre>\n<\/div>\n<p><code>Seeder<\/code>\u306f\u4f5c\u308b\u3060\u3051\u3067\u306f\u53cd\u6620\u3055\u308c\u306a\u3044\u306e\u3067<code>DatabaseSeeder.php<\/code>\u3078\u767b\u9332\u3057\u3066\u6709\u52b9\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><strong>database\/seeders\/DatabaseSeeder.php<\/strong><\/p>\n<div>\n<pre>    public function run(): void\r\n    {\r\n        \/\/ \u7701\u7565\r\n\r\n        $this-&gt;call([\r\n            <strong>NewsletterUserSeeder::class,  \/\/ \ud83d\udc48 \u3053\u3053\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f<\/strong>\r\n        ]);\r\n    }<\/pre>\n<\/div>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u521d\u671f\u5316\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<div>\n<pre><strong>php artisan migrate:fresh --seed<\/strong><\/pre>\n<\/div>\n<p>\u3059\u308b\u3068\u3001\u5b9f\u969b\u306e\u30c6\u30fc\u30d6\u30eb\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12499\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_9.png\" alt=\"\" width=\"403\" height=\"285\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_9.png 403w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_9-300x212.png 300w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12500\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_10.png\" alt=\"\" width=\"488\" height=\"261\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_10.png 488w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_10-300x160.png 300w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/p>\n<h1>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u6b21\u306b\u300c<strong>\u30e6\u30fc\u30b6\u30fc\u306e\u884c\u52d5\u5c65\u6b74<\/strong>\u300d\u3092\u4fdd\u5b58\u3059\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u300c<strong>\u5546\u54c1\u30da\u30fc\u30b8<\/strong>\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304d\u305f\u5834\u9762\u3092\u60f3\u5b9a\u3057\u3066\u300c<strong>ProductController.php<\/strong>\u300d\u3092\u3064\u304f\u308a\u307e\u3059\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>php artisan make:controller ProductController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<p><strong>app\/Http\/Controllers\/ProductController.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Http\\Controllers;<\/strong>\r\n\r\n<strong>use App\\Enums\\NewsletterUserActionType;<\/strong>\r\n<strong>use App\\Models\\NewsletterUser;<\/strong>\r\n<strong>use App\\Models\\NewsletterUserAction;<\/strong>\r\n<strong>use Illuminate\\Http\\Request;<\/strong>\r\n<strong>use Illuminate\\Support\\Facades\\Mail;<\/strong>\r\n\r\n<strong>class ProductController extends Controller<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    public function show(Request $request, $id) \/\/ \u672c\u6765\u306f\u3053\u3053\u306b\u5546\u54c1\u30e2\u30c7\u30eb\u3092\u30d0\u30a4\u30f3\u30c6\u30a3\u30f3\u30b0\u3057\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u7701\u7565\u3057\u307e\u3059<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $newsletter_uuid = $request-&gt;cookie('newsletter_uuid');<\/strong>\r\n<strong>        $newsletter_user = NewsletterUser::where('uuid', $newsletter_uuid)-&gt;first();<\/strong>\r\n\r\n<strong>        if(! is_null($newsletter_user)) {<\/strong>\r\n\r\n<strong>            \/\/ \u672c\u6765\u3053\u306e\u90e8\u5206\u306f\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306a\u3069\u3067\u5171\u901a\u5316\u3059\u308b\u3079\u304d\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u7701\u7565\u3057\u307e\u3059\u3002<\/strong>\r\n<strong>            \/\/ \u307e\u305f\u3053\u306e\u90e8\u5206\u306f\u53ef\u5909\u306b\u3059\u308b\u3079\u304d\u3067\u3059<\/strong>\r\n\r\n<strong>            if(intval($id) === 1) { \/\/ SNS\u96c6\u5ba2\u306b\u95a2\u3059\u308b\u30da\u30fc\u30b8\u3092\u60f3\u5b9a\u3057\u3066\u307e\u3059<\/strong>\r\n\r\n<strong>                \/\/ \u4e00\u756a\u6700\u521d\u306b\u5546\u54c1\u30da\u30fc\u30b8\u3092\u898b\u305f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b<\/strong>\r\n<strong>                $oldest_action = NewsletterUserAction::query()<\/strong>\r\n<strong>                    -&gt;where('newsletter_user_id', $newsletter_user-&gt;id)<\/strong>\r\n<strong>                    -&gt;where('action_type', NewsletterUserActionType::Sns_Sales_Viewed)<\/strong>\r\n<strong>                    -&gt;oldest()<\/strong>\r\n<strong>                    -&gt;first();<\/strong>\r\n\r\n\r\n<strong>                if(! is_null($oldest_action)) {<\/strong>\r\n\r\n<strong>                    if($oldest_action-&gt;created_at-&gt;diffInDays() &gt;= 7) { \/\/ \u521d\u3081\u3066\u5546\u54c1\u30da\u30fc\u30b8\u3092\u898b\u3066\u304b\u30897\u65e5\u4ee5\u4e0a\u7d4c\u904e\u3057\u3066\u3044\u308b\u304b\uff1f<\/strong>\r\n\r\n<strong>                        \/\/ \u5272\u5f15\u30af\u30fc\u30dd\u30f3\u3064\u304d\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\uff08\u672c\u6765\u306f Mailable \u3092\u4f7f\u3046\u3079\u304d\u3067\u3059\uff09<\/strong>\r\n<strong>                        $mail_body = '\u3053\u3053\u306b\u5272\u5f15\u30af\u30fc\u30dd\u30f3\u3064\u304d\u30e1\u30fc\u30eb\u306e\u672c\u6587\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002';<\/strong>\r\n<strong>                        Mail::raw($mail_body, function ($message) use ($newsletter_user) {<\/strong>\r\n\r\n<strong>                            $to = $newsletter_user-&gt;email;<\/strong>\r\n<strong>                            $message<\/strong>\r\n<strong>                                -&gt;to($to)<\/strong>\r\n<strong>                                -&gt;subject('\u3010Sukohi Web Service\u3011\u671f\u9593\u9650\u5b9a\u30af\u30fc\u30dd\u30f3\u306e\u3054\u6848\u5185 \u25cf\u6708\u25cf\u65e5\u307e\u3067\uff01');<\/strong>\r\n\r\n<strong>                        });<\/strong>\r\n\r\n<strong>                    }<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>                \/\/ \u30e6\u30fc\u30b6\u30fc\u306e\u884c\u52d5\u306f\u7121\u6761\u4ef6\u3067\u8a18\u9332\u3059\u308b\uff08\u4eca\u5f8c\u306e\u5206\u6790\u306e\u305f\u3081\uff09<\/strong>\r\n<strong>                $newsletter_user_action = new NewsletterUserAction();<\/strong>\r\n<strong>                $newsletter_user_action-&gt;newsletter_user_id = $newsletter_user-&gt;id;<\/strong>\r\n<strong>                $newsletter_user_action-&gt;action_type = NewsletterUserActionType::Sns_Sales_Viewed;<\/strong>\r\n<strong>                $newsletter_user_action-&gt;save();<\/strong>\r\n\r\n<strong>                return '\u5546\u54c1\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\uff08\u884c\u52d5\u5c65\u6b74\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3057\u305f\uff09';<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return '\u5546\u54c1\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\uff08\u884c\u52d5\u5c65\u6b74\u306f\u4fdd\u5b58\u3055\u308c\u3066\u3044\u307e\u305b\u3093\uff09';<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function set_cookie()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        \/\/ \u30c6\u30b9\u30c8\u7528\u3067 Cookie \u3092\u30bb\u30c3\u30c8\u3059\u308b<\/strong>\r\n<strong>        \/\/ \u672c\u6765\u306f\u30e1\u30eb\u30de\u30ac\u767b\u9332\u6642\u306b\u30bb\u30c3\u30c8\u3059\u308b\u3079\u304d<\/strong>\r\n\r\n<strong>        $uuid = 'taro0000-0000-0000-0000-000000000000';<\/strong>\r\n<strong>        $minutes = 60 * 24 * 365 * 10; \/\/ 10\u5e74\u9593\u6709\u52b9<\/strong>\r\n\r\n<strong>        return response('Cookie \u304c\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3057\u305f', 200)<\/strong>\r\n<strong>            -&gt;cookie('newsletter_uuid', $uuid, $minutes);<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<p>\u3061\u306a\u307f\u306b\u3001\u4eca\u56de\u306f\u30c6\u30b9\u30c8\u306a\u306e\u3067\u3001<code>set_cookie(){ ... }<\/code>\u306f\u300c<strong>Cookie\u3092\u30bb\u30c3\u30c8\u3059\u308b\u305f\u3081\u3060\u3051\u306e\u30c6\u30b9\u30c8\u30da\u30fc\u30b8<\/strong>\u300d\u306b\u306a\u3063\u3066\u307e\u3059\u3002<\/p>\n<p>\u672c\u6765\u306f\u3001\u30e1\u30eb\u30de\u30ac\u3092\u767b\u9332\u3057\u305f\u6642\u70b9\u3067<code>Cookie<\/code>\u3092\u30bb\u30c3\u30c8\u3059\u308b\u3088\u3046\u3067\u3059\u306d\u3002<\/p>\n<p>\u307e\u305f\u3001\u30c7\u30d0\u30a4\u30b9\u304c\u5909\u308f\u3063\u3066\u3082\u672c\u4eba\u3092\u7279\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u30e1\u30fc\u30eb\u306b\u300c<strong>\u30a6\u30a7\u30d6\u30d3\u30fc\u30b3\u30f3<\/strong>\u300d\u3068\u547c\u3070\u308c\u308b\u900f\u660e\u306a\u753b\u50cf\u3092\u30bb\u30c3\u30c8\u3057\u3066\u304a\u3044\u3066\u3001\u305d\u3053\u304b\u3089<code>Cookie<\/code>\u3092\u30bb\u30c3\u30c8\u3057\u305f\u308a\u3082\u3059\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<h1>\u3061\u306a\u307f\u306b<\/h1>\n<p>\u30d6\u30ed\u30b0\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u306a\u306e\u3067\u7701\u7565\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u306e\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u306f\u4ee5\u4e0b\u306e\u5185\u5bb9\u306b\u6c17\u3092\u3064\u3051\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<ul>\n<li>Cookie \u306e\u8ffd\u52a0\u3001\u53d6\u5f97\u306f\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u30dd\u30ea\u30b7\u30fc\u306a\u3069\u306b\u66f8\u3044\u3066\u304a\u304f\u5fc5\u8981\u304c\u51fa\u3066\u304f\u308b\uff08\u7279\u306b\u6d77\u5916\u3068\u306e\u95a2\u9023\u304c\u3042\u308b\u5834\u5408\u306b\u591a\u3044\u3088\u3046\u3067\u3059\uff09<\/li>\n<li>\u30e1\u30eb\u30de\u30ac\u3092\u9001\u308b\u969b\u306b\u306f\u3001\u300c\u9001\u4fe1\u3057\u3066OK\u306e\u540c\u610f\u300d\u300c\u3044\u3064\u3067\u3082\u30b9\u30c8\u30c3\u30d7OK\u300d\u306b\u3057\u3066\u304a\u304b\u306a\u3044\u3068\u3044\u3051\u306a\u3044<\/li>\n<li>\u7279\u5b9a\u96fb\u5b50\u30e1\u30fc\u30eb\u6cd5\u306b\u95a2\u308f\u3089\u305a\u4e00\u5ea6\u9001\u4fe1\u3057\u305f\u30e1\u30fc\u30eb\u6587\u9762\u3092\u4f55\u5ea6\u3082\u9001\u308b\u3079\u304d\u3067\u306f\u306a\u3044\uff08\uff11\u5e74\u904e\u304e\u305f\u308a\u3057\u305f\u3089OK\u304b\u3082\u3067\u3059\u304c\u2026\uff09\u306e\u3067\u3001\u4eca\u56de\u306e\u6761\u4ef6\u3060\u3051\u3067\u306f\u3053\u3053\u306f\u5b9f\u88c5\u3067\u304d\u3066\u3044\u306a\u3044<\/li>\n<\/ul>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30c0\u30a4\u30ec\u30af\u30c8\u30fb\u30ec\u30b9\u30dd\u30f3\u30b9\u30fb\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u306e\u300c<strong>\u30ea\u30bf\u30fc\u30b2\u30c6\u30a3\u30f3\u30b0<\/strong>\u300d\u6a5f\u80fd\u3092\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<\/p>\n<p>\u307e\u305a\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u300c<strong>https:\/\/******\/product\/2<\/strong>\u300d\uff08\ud83d\udc48 \uff12\u3067\u3059\uff09\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u884c\u52d5\u5c65\u6b74\u304c\u4fdd\u5b58<strong>\u300c\u3055\u308c\u306a\u3044<\/strong>\u300d\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/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-12490\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_1.png\" alt=\"\" width=\"462\" height=\"47\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_1.png 462w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_1-300x31.png 300w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/p>\n<p>\u306f\u3044\u2757<\/p>\n<p>\u4eca\u56de\u306e\u6a5f\u80fd\u306b\u306f\u95a2\u4fc2\u306a\u3044\u5546\u54c1\u3060\u3063\u305f\u306e\u3067\u300c<strong>\u884c\u52d5\u5c65\u6b74\u306f\u4fdd\u5b58\u3055\u308c\u3066\u3044\u307e\u305b\u3093<\/strong>\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305a\u306f\u6210\u529f\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u6b21\u306b\u30c6\u30b9\u30c8\u7528\u306e<code>Cookie<\/code>\u3092\u30d6\u30e9\u30a6\u30b6\u306b\u4ed8\u52a0\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u300c<strong>https:\/\/******\/product\/set_cookie<\/strong>\u300d\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12491\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_2.png\" alt=\"\" width=\"227\" height=\"43\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n<code>Cookie<\/code>\u304c\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u5ff5\u306e\u305f\u3081\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u3082\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-12492\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_3.png\" alt=\"\" width=\"501\" height=\"152\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_3.png 501w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_3-300x91.png 300w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/p>\n<p>\u304d\u3061\u3093\u3068\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<p>\u203b\u3061\u306a\u307f\u306b<code>Laravel<\/code>\u5074\u3067\u5024\u306f\u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u6bce\u56de\u3053\u3053\u306e\u5024\u306f\u5909\u308f\u308a\u307e\u3059\u3002\u5b89\u5fc3\u3067\u3059\u306d\ud83d\ude04\ud83d\udc4d<\/p>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u300c<strong>https:\/\/******\/product\/1<\/strong>\u300d\uff08\u3053\u308c\u304c\u76ee\u7684\u306e\u5546\u54c1\u30da\u30fc\u30b8\u3067\u3059\uff09\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\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-12493\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_4.png\" alt=\"\" width=\"430\" height=\"44\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_4.png 430w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_4-300x31.png 300w\" sizes=\"auto, (max-width: 430px) 100vw, 430px\" \/><\/p>\n<p>\u306f\u3044\u2757<\/p>\n<p>\u4eca\u5ea6\u306f\u300c<strong>\u884c\u52d5\u5c65\u6b74\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3057\u305f<\/strong>\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u65b9\u3082\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-12494\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_5.png\" alt=\"\" width=\"634\" height=\"277\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_5.png 634w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_5-300x131.png 300w\" sizes=\"auto, (max-width: 634px) 100vw, 634px\" \/><\/p>\n<p>\u3046\u307e\u304f\u884c\u52d5\u5c65\u6b74\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude04<\/p>\n<p>\u3067\u306f\u3001\u4f55\u5ea6\u304b\u30ea\u30ed\u30fc\u30c9\u3057\u3066\u884c\u52d5\u5c65\u6b74\u304c\u6e9c\u307e\u3063\u3066\u3044\u304f\u304b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12495\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_6.png\" alt=\"\" width=\"628\" height=\"347\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_6.png 628w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_6-300x166.png 300w\" sizes=\"auto, (max-width: 628px) 100vw, 628px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u3053\u3061\u3089\u3082\u3046\u307e\u304f\u3044\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u203b \u3064\u307e\u308a\u3001\u3053\u308c\u3089\u306f\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u6226\u7565\u306b\u3088\u3063\u3066\u300c<strong>\u904e\u53bb\u306b5\u56de\u3082\u898b\u306b\u6765\u305f\u306e\u306b\u3001\u8cb7\u3063\u3066\u306a\u3044\u3093\u3060\u304b\u3089\u4eca\u5ea6\u306f\u4f3c\u305f\u5546\u54c1\u3067\u30a2\u30d7\u30ed\u30fc\u30c1\u3057\u3088\u3046<\/strong>\u300d\u3068\u304b\u3044\u308d\u3093\u306a\u5224\u65ad\u306b\u4f7f\u3048\u308b\u8a33\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u5272\u5f15\u30af\u30fc\u30dd\u30f3\u304c\u9001\u4fe1\u3055\u308c\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u56de\u306f\u300c<strong>\u521d\u3081\u3066\u5546\u54c1\u30da\u30fc\u30b8\u3092\u898b\u3066\u304b\u3089 7\u65e5\u4ee5\u4e0a\u7d4c\u904e\u3057\u3066\u3044\u305f\u3089<\/strong>\u300d\u5272\u5f15\u30af\u30fc\u30dd\u30f3\u30fb\u30e1\u30fc\u30eb\u3092\u9001\u308b\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u30c6\u30b9\u30c8\u3068\u3057\u3066\u6700\u521d\u306e\u30c7\u30fc\u30bf\u306e<code>created_at<\/code>\u3092\uff11\u30f6\u6708\u6e1b\u3089\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12496\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_7.png\" alt=\"\" width=\"632\" height=\"391\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_7.png 632w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_7-300x186.png 300w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/p>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u30ea\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<p>\uff08\u3064\u307e\u308a\u3001\u521d\u3081\u3066\u5546\u54c1\u3092\u898b\u3066\u304b\u3089\u4e00\u30f6\u6708\u5f8c\u304c\u7d4c\u904e\u3057\u305f\u72b6\u614b\u3067\u3059\u306d\uff09<\/p>\n<p>\u3046\u307e\u304f\u3044\u304f\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-12497\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_8.png\" alt=\"\" width=\"502\" height=\"333\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_8.png 502w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/03\/laravel_response_marketing_8-300x199.png 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u3046\u307e\u304f\u30e1\u30fc\u30eb\u304c\u9001\u4fe1\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u306f\u3001\u3053\u3053\u306b\u30af\u30fc\u30dd\u30f3\u30b3\u30fc\u30c9\u304c\u66f8\u304b\u308c\u3066\u3044\u3066\u5272\u5f15\u3067\u8cb7\u3044\u7269\u304c\u3067\u304d\u305f\u308a\u3059\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u3059\u3079\u3066\u6210\u529f\u3067\u3059\ud83d\ude04\u2728<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306e\u3088\u3046\u306b\u30ea\u30bf\u30fc\u30b2\u30c6\u30a3\u30f3\u30b0\u624b\u6cd5\u3092\u30a6\u30a7\u30d6\u30b7\u30b9\u30c6\u30e0\u3092\u878d\u5408\u3055\u305b\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u304a\u5ba2\u3055\u3093\u3092\u300c<strong>\u3088\u308a\u8cfc\u5165\u3092\u3057\u3084\u3059\u3044<\/strong>\u300d\u72b6\u614b\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff08\u3064\u307e\u308a\u3001<code>CVR<\/code>\u306e\u6539\u5584\u306b\u3064\u306a\u304c\u308a\u307e\u3059\uff09<\/p>\n<p>\u307e\u305f\u3001\u4f7f\u3044\u65b9\u306b\u3088\u3063\u3066\u306f\u300c\u30c0\u30a6\u30f3\u30bb\u30eb\uff08\u4eca\u56de\u306e\u3088\u3046\u306a\u5024\u5f15\u304d\uff09\u300d\u3084\u300c\u30af\u30ed\u30b9\u30bb\u30eb\uff08\u5225\u306e\u5546\u54c1\u306e\u63d0\u6848\uff09\u300d\u306b\u3064\u306a\u3052\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3082\u3057\u3053\u3046\u3044\u3063\u305f\u6a5f\u80fd\u3092\u3054\u5e0c\u671b\u3067\u3057\u305f\u3089\u3001\u304a\u6c17\u8efd\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304b\u3089\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\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\u4eca\u56de\u306f\u3001\u3088\u308a\u5b9f\u8df5\u7684\u306a\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u624b\u6cd5\u300c<strong>\u30c0\u30a4\u30ec\u30af\u30c8\u30fb\u30ec\u30b9\u30dd\u30f3\u30b9\u30fb\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0<\/strong>\u300d\u3068\u300c<strong>\u30ea\u30bf\u30fc\u30b2\u30c6\u30a3\u30f3\u30b0<\/strong>\u300d\u3092\u6d3b\u7528\u3057\u3066\u6a5f\u80fd\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u3092\u77e5\u308c\u3070\u77e5\u308b\u307b\u3069\u300c<strong>\u3042\u2757\u3058\u3083\u3001\u3042\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306f\u305d\u3046\u3044\u3046\u3053\u3068\u3060\u3063\u305f\u306e\u306d\uff01\uff1f<\/strong>\u300d\u3068\u306a\u308b\u5834\u5408\u3082\u3042\u308a\u3001\u3084\u3063\u3071\u308a\u982d\u306e\u3044\u3044\u4eba\u3063\u3066\u3059\u3054\u3044\u3057\u3001\u7a3c\u3044\u3067\u308b\u3093\u3060\u308d\u3046\u306a\u3041\u3001\u3057\u307f\u3058\u307f\u611f\u3058\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u79c1\u3082\u305d\u308d\u305d\u308d\u5c11\u3057\u5927\u304d\u306a\u304a\u91d1\u3092\u304b\u3051\u3066\u52c9\u5f37\u3059\u308b\u3068\u304d\u304c\u6765\u305f\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u77e5\u8b58\u306b\u4f55\u304b\u5225\u306e\u77e5\u8b58\u3092\u639b\u3051\u5408\u308f\u305b\u3066\u3001\u3054\u81ea\u8eab\u306e\u5e02\u5834\u4fa1\u5024\u3092\u9ad8\u3081\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002\uff08\u79c1\u3082\u304c\u3093\u3070\u308a\u307e\u3059\ud83d\udc4d\uff09<\/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-8777 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/no_15.png\" alt=\"\" width=\"338\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/no_15.png 338w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/no_15-300x284.png 300w\" sizes=\"auto, (max-width: 338px) 100vw, 338px\" \/>\u300c\u3067\u3082\u3001\u6cca\u307e\u308b\u3068\u306a\u3063\u305f\u3089<br \/>\n\u30cd\u30ab\u30d5\u30a7\u3067\u7bc0\u7d04\u304c<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3059 \ud83d\ude02\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u307e\u3060\u307e\u3060\u300c\u5e02\u5834\u4fa1\u5024\u306e\u9ad8\u3044\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u306b\u306a\u308a\u305f\u3044\u306e\u3067\u3001\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u77e5\u8b58\u3092\u8a70\u3081\u8fbc\u3093\u3067\u3044\u308b\u4eca\u65e5\u3053\u306e\u9803\u3067\u3059\u3002 \u305d\u3057\u3066\u3001\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u3092\u52c9\u5f37\u3059\u308b\u306b\u3042\u305f\u3063\u3066\u3001\u3042 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=12488\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel \u3067\u300c\u30c0\u30a4\u30ec\u30af\u30c8\u30fb\u30ec\u30b9\u30dd\u30f3\u30b9\u30fb\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u300d\u57fa\u790e\u30b7\u30b9\u30c6\u30e0\u3092\u3064\u304f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":12504,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,258],"tags":[],"class_list":["post-12488","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-258"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12488","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=12488"}],"version-history":[{"count":11,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12488\/revisions"}],"predecessor-version":[{"id":12580,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12488\/revisions\/12580"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/12504"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}