{"id":11536,"date":"2023-04-03T07:00:15","date_gmt":"2023-04-02T22:00:15","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=11536"},"modified":"2023-04-05T06:17:25","modified_gmt":"2023-04-04T21:17:25","slug":"laravel-react%e3%81%a7%e5%ae%9f%e7%8f%be%e3%81%99%e3%82%8bweb%e3%83%97%e3%83%83%e3%82%b7%e3%83%a5%e9%80%9a%e7%9f%a5%ef%bc%81chatgpt%e3%81%a8%e5%85%b1%e3%81%abios-16-4%e3%81%a7%e8%a9%a6%e3%81%97","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=11536","title":{"rendered":"Laravel + React\u3067\u5b9f\u73fe\u3059\u308bWeb\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\uff01ChatGPT\u3068\u5171\u306biOS 16.4\u3067\u8a66\u3057\u3066\u307f\u305f\u7d50\u679c"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u4e16\u306e\u4e2d\u306b\u306f\u300c<strong>\u3046\u30fc\u3093\u3001\u50d5\u304c\u751f\u304d\u3066\u3044\u308b\u9593\u306f\u30e0\u30ea\u306a\u3093\u3058\u3083\u306a\u3044\ud83d\ude05<\/strong>\u300d\u3068\u601d\u3046\u3053\u3068\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3088\u306d\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u300c\u30b5\u30af\u30e9\u30c0\u30d5\u30a1\u30df\u30ea\u30a2\u300d\u306f\u300c\u5b8c\u6210\u3057\u306a\u3044\u300d\u3067\u6709\u540d\u306a\u3082\u306e\u306e\u4e00\u3064\u3067\u3059\u306d\u3002<\/p>\n<p>\u3067\u306f\u3001\u6211\u3089<code>IT<\/code>\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u4e2d\u3067\u306f\u4f55\u3068\u8a00\u3046\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">iOS\u304c\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u306f\u306a\u3044\u3093\u3058\u3083\u306a\u3044\u304b\ud83d\ude05<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\u3001\u4e00\u7bc0\u306b\u3088\u308b\u3068<code>Apple<\/code>\u306f\u30a6\u30a7\u30d6\u306e\u4e16\u754c\u3092\u307b\u307c\u72ec\u5360\u3057\u3066\u3044\u308b<code>Google<\/code>\u306b\u5bfe\u6297\u3059\u308b\u305f\u3081\u306b\u30e2\u30d0\u30a4\u30eb\u5185\u3067\u5b8c\u7d50\u3059\u308b\u30a2\u30d7\u30ea\u3092\u4e3b\u8ef8\u306b\u3057\u3066\u3044\u3066\u3001\u3068\u306a\u308b\u3068\u7d50\u5c40\u306f\u6575\u304c\u559c\u3076\u3053\u3068\u306f\u3057\u306a\u3044\u3093\u3058\u3083\u306a\u3044\u3060\u308d\u3046\u304b\u2026\u3068\u3044\u3046\u4e8b\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3053\u306e\u9593\u30cb\u30e5\u30fc\u30b9\u3067\u3053\u306e\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u304c<code>iOS 16.4<\/code>\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u305f\u3068\u805e\u304d\u307e\u3057\u305f\uff01\uff08\u30c8\u30e0\u3068\u30b8\u30a7\u30ea\u30fc\u304c\u4ef2\u826f\u304f\u30b9\u30bf\u30d0\u3067\u30ab\u30d5\u30a7\u3057\u3066\u308b\u3001\u3057\u304b\u3082\u30da\u30a2\u30eb\u30c3\u30af\u3001\u3050\u3089\u3044\u306e\u885d\u6483\u3067\u3057\u305f\ud83d\ude02\uff09<\/p>\n<p><strong>\ud83d\udcdd \u53c2\u8003\u8a18\u4e8b\uff1a<\/strong>\u00a0<a href=\"https:\/\/gigazine.net\/news\/20230328-ios-16-4\/\" target=\"_blank\" rel=\"noopener\">\u300ciOS 16.4\u300d\u306e\u914d\u4fe1\u304c\u30b9\u30bf\u30fc\u30c8\u3001\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u3084\u901a\u8a71\u306e\u97f3\u58f0\u5206\u96e2\u306a\u3069\u304c\u53ef\u80fd\u306b<\/a><\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f\u300c<strong>Laravel + React<\/strong>\u300d\u3067<code>iOS<\/code>\u306e\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u3092\u4f7f\u3046\u6a5f\u80fd\u3092\u958b\u767a\u3057\u3066\u307f\u307e\u3059\u3002\uff08\u3068\u306f\u3044\u3048<code>Android<\/code>\u3067\u3082\u540c\u3058\u30b3\u30fc\u30c9\u3067\u3059\uff09<\/p>\n<p>\u305c\u3072\u4f55\u304b\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u203b \u306a\u304a\u3001\u6642\u4ee3\u306e\u6d41\u308c\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u610f\u5473\u3082\u3053\u3081\u3066\u3001\u305d\u3057\u3066\uff08\u3053\u3053\u91cd\u8981\u306a\u306e\u3067\u3059\u304c\uff09\u88cf\u30c6\u30fc\u30de\u3068\u3057\u3066\u300c<strong>\u5c11\u3057\u8907\u96d1\u306a\u958b\u767a\u3067\u30db\u30f3\u30c8\u306b\u5f79\u7acb\u3064\u306e\u304b<\/strong>\u300d\u306e\u691c\u8a3c\u306e\u305f\u3081\u306b<code>ChatGPT<\/code>\u3092\u4f7f\u3063\u3066\u307f\u307e\u3059\u3002\u3068\u3044\u3046\u306e\u3082\u3001<code>ChatGPT<\/code>\u3092\u4f75\u7528\u3057\u305f\u958b\u767a\u306e\u52d5\u753b\u3092\u898b\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u304c\u3001<code>CRUD<\/code>\u306a\u3069\u30b7\u30f3\u30d7\u30eb\u306a\u3082\u306e\u3057\u304b\u306a\u304b\u3063\u305f\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\uff08\u8ab0\u3067\u3082\u4f7f\u3044\u3084\u3059\u3044\u3088\u3046\u306b<code>3.5<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002\u306a\u304a\u3001\u307e\u3060\u3069\u3053\u306b\u30d0\u30b0\u304c\u5165\u3063\u3066\u3044\u308b\u306e\u304b\u308f\u304b\u3089\u305a\u3001\u6016\u3044\u306e\u3067\u304a\u4ed5\u4e8b\u306e\u958b\u767a\u3067<code>ChatGPT<\/code>\u306f\u4f7f\u3063\u3066\u3044\u307e\u305b\u3093\u3002m(_ _)m\uff09<\/p>\n<p><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\" \/><\/p>\n<p style=\"text-align: center;\">\u300c\u81ea\u5206\u306b\u4f3c\u305f\u6027\u683c\u306e<br \/>\n\u30d3\u30b8\u30cd\u30b9\u7cfb YouTuber \u63a2\u3057\u3066<br \/>\n\u305d\u306e\u52d5\u753b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307e\u3059\ud83d\udc4d\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 10.x\u3001React\u3001ChatGPT 3.5\u3001Inertia.js\u3001TailwindCSS<\/p>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p>\u4eca\u56de\u306e\u4f5c\u696d\u306f\u4ee5\u4e0b\u306e\u524d\u63d0\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>Laravel Breeze \u306a\u3069\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b<\/li>\n<li>\u3055\u3089\u306b\u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u304c\u6700\u4f4e\u3067\u3082\uff11\u4eba\u306f\u5b58\u5728\u3057\u3066\u3044\u308b<\/li>\n<\/ul>\n<h1>\u624b\u9806\u3092\u805e\u3044\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001<code>ChatGPT<\/code>\u306b\u4eca\u56de\u306e\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306e\u624b\u9806\u3092\u805e\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<div>\n<pre>ChatGPT:\r\n<strong>\u3042\u306a\u305f\u306f\u512a\u79c0\u306a\u30d7\u30ed\u30b0\u30e9\u30de\u3068\u3057\u3066\u56de\u7b54\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/strong>\r\n<strong>Laravel 10.x \u3067\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u6a5f\u80fd\u3092\u3064\u304f\u308b\u624b\u9806\u3092\u30b9\u30c6\u30c3\u30d7\u30fb\u30d0\u30a4\u30fb\u30b9\u30c6\u30c3\u30d7\u3067\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u307e\u3059\u3067\u3057\u3087\u3046\u304b\u3002<\/strong><\/pre>\n<p>\u203b \u30db\u30f3\u30c8\u304b\u5618\u304b\u3001\u4e01\u5be7\u306b\u63a5\u3059\u308b\u3068\u56de\u7b54\u306e\u30af\u30aa\u30ea\u30c6\u30a3\u304c\u4e0a\u304c\u308b\u3089\u3057\u3044\u3067\u3059\u306d\ud83d\ude04<\/p>\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u56de\u7b54\u3057\u3066\u304f\u308c\u307e\u3057\u305f\u3002<\/p>\n<ol>\n<li>\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/li>\n<li>VAPID\u30ad\u30fc\u3092\u751f\u6210\u3059\u308b<\/li>\n<li>\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u7528\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u3092\u9001\u4fe1\u3059\u308b\u305f\u3081\u306e\u901a\u77e5\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u3092\u9001\u4fe1\u3059\u308b\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306b\u30b5\u30fc\u30d3\u30b9\u30ef\u30fc\u30ab\u30fc\u3092\u767b\u9332\u3059\u308b<\/li>\n<li>\u30b5\u30fc\u30d3\u30b9\u30ef\u30fc\u30ab\u30fc\u3092\u767b\u9332\u3059\u308b<\/li>\n<\/ol>\n<p>\u203b \u305f\u3060\u3001\u6b8b\u5ff5\u306a\u3053\u3068\u306b\u3053\u306e\u624b\u9806\u306f\u6b63\u3057\u3044\u3068\u601d\u3046\u3082\u306e\u306e\u3001\u5404\u8aac\u660e\u6587\u306f\u9593\u9055\u3063\u3066\u3044\u308b\u90e8\u5206\u304c\u591a\u304f\u3042\u3063\u305f\u305f\u3081\u3001\u9014\u4e2d\u3067\u8a00\u308f\u308c\u305f\u3068\u304a\u308a\u4f5c\u696d\u3059\u308b\u306e\u306f\u30e0\u30ea\u3060\u3068\u5224\u65ad\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3053\u306e\u624b\u9806\u306b\u5f93\u3044\u306a\u304c\u3089\uff08\u3067\u3082\u3001\u4f5c\u696d\u5185\u5bb9\u306f\u5f93\u308f\u306a\u3044\u3088\u3046\u306b\uff09\u4f5c\u696d\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3057\u3087\u3046\ud83d\ude02<\/p>\n<h1>\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001<code>Laravel Notification Channels<\/code>\u306e\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<div>\n<pre><strong>composer require laravel-notification-channels\/webpush<\/strong><\/pre>\n<h1>VAPID\u30ad\u30fc\u3092\u751f\u6210\u3059\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u3001\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u306b\u5fc5\u8981\u306b\u306a\u308b<code>VAPID<\/code>\u30ad\u30fc\u3092\u4f5c\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan webpush:vapid<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>.env<\/code>\u306b\u30ad\u30fc\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>.env<\/strong><\/p>\n<div>\n<pre><strong>VAPID_PUBLIC_KEY=\uff08\u3042\u306a\u305f\u306e\u30d1\u30d6\u30ea\u30c3\u30af\u30ad\u30fc\uff09<\/strong>\r\n<strong>VAPID_PRIVATE_KEY=\uff08\u3042\u306a\u305f\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ad\u30fc\uff09<\/strong><\/pre>\n<h1>\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u7528\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001<code>DB<\/code>\u30c6\u30fc\u30d6\u30eb\u306e\u4f5c\u6210\u3067\u3059\u3002<br \/>\n<code>ChatGPT<\/code>\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u63d0\u6848\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<div>\n<pre><strong>\/\/ \u26a0\u6ce8\u610f\uff1a \u3053\u308c\u306f\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093<\/strong>\r\n\r\n<strong>php artisan make:migration create_web_push_notifications_table<\/strong><\/pre>\n<\/div>\n<div>\n<p>\u3057\u304b\u3057\u3001\u672c\u5bb6\u306e\u30b5\u30a4\u30c8\u3067\u306f\u305d\u3046\u3067\u306f\u306a\u304f\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\uff08\u30b3\u30d4\u30fc\uff09\u3057\u3066\u306d\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3053\u3053\u306f\u7121\u8996\u3057\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div>\n<pre><strong>php artisan vendor:publish --provider=\"NotificationChannels\\WebPush\\WebPushServiceProvider\" --tag=\"migrations\"<\/strong><\/pre>\n<\/div>\n<p>\u3059\u308b\u3068\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u304c<code>database\/migrations<\/code>\u30d5\u30a9\u30eb\u30c0\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/div>\n<\/div>\n<p>\u7d9a\u3044\u3066\u3001\u672c\u5bb6\u30b5\u30a4\u30c8\u306b\u3057\u305f\u304c\u3063\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div>\n<pre><strong>php artisan migrate<\/strong><\/pre>\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-11551\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_8.png\" alt=\"\" width=\"410\" height=\"353\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_8.png 410w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_8-300x258.png 300w\" sizes=\"auto, (max-width: 410px) 100vw, 410px\" \/><\/p>\n<h1>\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u3092\u9001\u4fe1\u3059\u308b\u305f\u3081\u306e\u901a\u77e5\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u3001<code>Notification<\/code>\u3092\u7d99\u627f\u3057\u305f\u5c02\u7528\u30af\u30e9\u30b9\u3092\u4f5c\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:notification WebPushNotification<\/strong><\/pre>\n<\/div>\n<p>\u306a\u304a\u3001\u5148\u307b\u3069<code>ChatGPT<\/code>\u304c\u63d0\u6848\u3057\u3066\u304d\u305f\u624b\u9806\u306b\u306f\u30af\u30e9\u30b9\u306e\u30b3\u30fc\u30c9\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u8cea\u554f\u3067\u63d0\u6848\u3057\u3066\u3082\u3089\u3044\u3001\u9593\u9055\u3063\u305f\u90e8\u5206\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<div>\n<pre>ChatGPT\uff1a\r\n<strong>\u3042\u306a\u305f\u306f\u512a\u79c0\u306a\u30d7\u30ed\u30b0\u30e9\u30de\u3068\u3057\u3066\u56de\u7b54\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/strong>\r\n<strong>laravel-notification-channels\/webpush\u306e\u305f\u3081\u306b\u5fc5\u8981\u306a\u901a\u77e5\u30af\u30e9\u30b9\u3092\u4f5c\u3063\u3066\u304f\u3060\u3055\u3044\u307e\u3059\u3067\u3057\u3087\u3046\u304b\u3002<\/strong>\r\n<strong>\u5bfe\u8c61\u306fLaravel 10.x\u3067\u3059\u3002<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u63d0\u6848\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<div>\n<pre><strong>\/\/ \u26a0\u6ce8\u610f\uff1a \u3053\u306e\u30b3\u30fc\u30c9\u306f\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/strong>\r\n\r\n&lt;?php\r\n\r\nnamespace App\\Notifications;\r\n\r\nuse Illuminate\\Bus\\Queueable;\r\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\r\n<strong>use Illuminate\\Notifications\\Messages\\{MailMessage, WebPushMessage};<\/strong>\r\nuse Illuminate\\Notifications\\Notification;\r\nuse NotificationChannels\\WebPush\\WebPushMessage as PushMessage;\r\nuse NotificationChannels\\WebPush\\WebPushChannel;\r\n\r\nclass WebPushNotification extends Notification\r\n{\r\n    use Queueable;\r\n\r\n    public function via($notifiable)\r\n    {\r\n        return [WebPushChannel::class];\r\n    }\r\n\r\n    public function toWebPush($notifiable, $notification)\r\n    {\r\n        return (new PushMessage)\r\n            -&gt;title('New Notification')\r\n            -&gt;body('This is a test notification')\r\n            -&gt;action('View', 'view_notification')\r\n            -&gt;data(['id' =&gt; $notification-&gt;id]);\r\n    }\r\n}<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div>\n<p>\u305f\u3060\u3057\u3001\u3053\u306e\u30b3\u30fc\u30c9\u306b\u306f\u9593\u9055\u3044\u3068\u5909\u66f4\u70b9\u304c\u5165\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305a\u300c<strong>WebPushMessage<\/strong>\u300d\u306e\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u306e\u90e8\u5206\u3067\u3059\u3002<br \/>\n\u3053\u3053\u306f<code>phpstorm<\/code>\u304c\u300c\u3053\u306e\u30af\u30e9\u30b9\u306f\u5b58\u5728\u3057\u3066\u3044\u307e\u305b\u3093\u300d\u3068\u6559\u3048\u3066\u304f\u308c\u307e\u3057\u305f\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div>\n<pre><strong>use Illuminate\\Notifications\\Messages\\{MailMessage, WebPushMessage};<\/strong><\/pre>\n<\/div>\n<div>\n<div>\n<div>\n<p>\u307e\u305f\u3001\u4eca\u56de\u306f<code>Queue<\/code>\u3092\u4f7f\u308f\u306a\u3044\u306e\u3067<code>ShouldQueue<\/code>\u3068<code>Queueable<\/code>\u3092\u524a\u9664\u3057\u3001\u6700\u7d42\u7684\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><strong>app\/Notifications\/WebPushNotification.php<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Notifications;<\/strong>\r\n\r\n<strong>use Illuminate\\Notifications\\Notification;<\/strong>\r\n<strong>use NotificationChannels\\WebPush\\WebPushMessage as PushMessage;<\/strong>\r\n<strong>use NotificationChannels\\WebPush\\WebPushChannel;<\/strong>\r\n\r\n<strong>class WebPushNotification extends Notification<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    public function via($notifiable)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return [WebPushChannel::class];<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function toWebPush($notifiable, $notification)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return (new PushMessage)<\/strong>\r\n<strong>            -&gt;title('New Notification')<\/strong>\r\n<strong>            -&gt;body('This is a test notification')<\/strong>\r\n<strong>            -&gt;action('View', 'view_notification')<\/strong>\r\n<strong>            -&gt;data(['id' =&gt; $notification-&gt;id]);<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<h1>\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u3092\u9001\u4fe1\u3059\u308b\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/h1>\n<p>\u63d0\u6848\u3055\u308c\u305f\u306e\u306f\u3001\u6b63\u3057\u304f\u306a\u304b\u3063\u305f\u305f\u3081\u3053\u3053\u306f\u81ea\u529b\u3067\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305a\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<div>\n<pre><strong>php artisan make:controller WebPushController<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Http\/Controllers\/WebPushController.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\\Models\\User;<\/strong>\r\n<strong>use Illuminate\\Http\\Request;<\/strong>\r\n<strong>use Inertia\\Inertia;<\/strong>\r\n<strong>use App\\Notifications\\WebPushNotification;<\/strong>\r\n\r\n<strong>class WebPushController extends Controller<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    public function index()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return Inertia::render('WebPush', [<\/strong>\r\n<strong>            'vapidPublicKey' =&gt; env('VAPID_PUBLIC_KEY')<\/strong>\r\n<strong>        ]);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function store(Request $request)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        \/\/ \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306f\u7701\u7565\u3057\u3066\u3044\u307e\u3059<\/strong>\r\n\r\n<strong>        $endpoint = $request-&gt;endpoint;<\/strong>\r\n<strong>        $token = $request-&gt;keys['auth'];<\/strong>\r\n<strong>        $key = $request-&gt;keys['p256dh'];<\/strong>\r\n<strong>        $user = User::find(1); \/\/ \u30c6\u30b9\u30c8\u306e\u305f\u3081\u3001\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u3064\u304b\u3046<\/strong>\r\n<strong>        $user-&gt;updatePushSubscription($endpoint, $key, $token);<\/strong>\r\n\r\n<strong>        return redirect()-&gt;route('web_push.index');<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function test()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $user = User::find(1); \/\/ \u30c6\u30b9\u30c8\u306e\u305f\u3081\u3001\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u3064\u304b\u3046<\/strong>\r\n<strong>        $user-&gt;notify(new WebPushNotification());<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<div>\n<p>\u306a\u304a\u3001<code>index()<\/code>\u306f\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u3092\u767b\u9332\u3059\u308b\u305f\u3081\u306e<code>React<\/code>\u30da\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u308c\u306b\u5bfe\u5fdc\u3059\u308b\u30d3\u30e5\u30fc\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p><strong>resources\/js\/Pages\/WebPush.jsx<\/strong><\/p>\n<div>\n<pre><strong>import PushNotificationButton from \"@\/Components\/PushNotificationButton\";<\/strong>\r\n<strong>import {Head} from \"@inertiajs\/react\";<\/strong>\r\n\r\n<strong>export default function WebPush(props) {<\/strong>\r\n\r\n<strong>    return (<\/strong>\r\n<strong>        &lt;div&gt;<\/strong>\r\n<strong>            &lt;Head&gt;<\/strong>\r\n<strong>                &lt;link rel=\"manifest\" href=\"\/manifest.json\" \/&gt;<\/strong>\r\n<strong>            &lt;\/Head&gt;<\/strong>\r\n<strong>            &lt;h1&gt;Web Push \u306e\u30c6\u30b9\u30c8&lt;\/h1&gt;<\/strong>\r\n<strong>            &lt;PushNotificationButton vapidPublicKey={props.vapidPublicKey} \/&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n<strong>    );<\/strong>\r\n\r\n<strong>}<\/strong><\/pre>\n<p>\u306a\u304a\u3001\u3053\u306e\u4e2d\u3067\u5fc5\u8981\u306a<code>manifest.json<\/code>\u306f\u5f8c\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002\uff08\u5b9f\u306f\u3001\u3053\u308c\u304c\u306a\u3044\u3068iOS\u3067\u306f\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u304c\u52b9\u304d\u307e\u305b\u3093\ud83d\ude2b\uff09<\/p>\n<\/div>\n<p>\u307e\u305f\u3001\u30eb\u30fc\u30c8\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<div>\n<pre><strong>use App\\Http\\Controllers\\WebPushController;<\/strong>\r\n\r\n\/\/ \u7701\u7565\r\n\r\n<strong>Route::get('web_push', [WebPushController::class, 'index'])-&gt;name('web_push.index');<\/strong>\r\n<strong>Route::get('web_push\/test', [WebPushController::class, 'test'])-&gt;name('web_push.index');<\/strong>\r\n<strong>Route::post('web_push', [WebPushController::class, 'store'])-&gt;name('web_push.store');<\/strong><\/pre>\n<\/div>\n<div>\n<p>\u307e\u305f\u3001<code>User<\/code>\u30e2\u30c7\u30eb\u304b\u3089\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u306e\u767b\u9332\u304c\u3067\u304d\u308b\u3088\u3046\u306b<code>HasPushSubscriptions<\/code>\u30c8\u30ec\u30a4\u30c8\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<div>\n<pre>\/\/ \u7701\u7565\r\n\r\n<strong>use NotificationChannels\\WebPush\\HasPushSubscriptions;<\/strong>\r\n\r\nclass User extends Authenticatable\r\n{\r\n    use HasApiTokens, HasFactory, Notifiable, <strong>HasPushSubscriptions<\/strong>;\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h1>\u30b5\u30fc\u30d3\u30b9\u30ef\u30fc\u30ab\u30fc\u672c\u4f53\u3092\u3064\u304f\u308b<\/h1>\n<p>\u203b\u00a0<code>ChatGPT<\/code>\u306f\u300c<strong>\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306b\u30b5\u30fc\u30d3\u30b9\u30ef\u30fc\u30ab\u30fc\u3092\u767b\u9332\u3059\u308b<\/strong>\u300d\u3068\u3057\u3066\u63d0\u6848\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u306f\u6b21\u306e\u9805\u76ee\u306a\u306e\u3067\u3001\u30bf\u30a4\u30c8\u30eb\u3092\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001<code>JavaScript<\/code>\u5074\u306e\u90e8\u5206\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u4fdd\u5b58\u3057\u3066\u3053\u308c\u3092<code>JavaScript<\/code>\u5074\u304b\u3089\u547c\u3073\u51fa\u305b\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u304d\u307e\u3059\u3002\uff08\u306a\u304a\u3001\u3053\u308c\u306f<code>ChatGPT<\/code>\u304c\u63d0\u6848\u3057\u305f\u3082\u306e\u305d\u306e\u307e\u307e\u3067\u3059\u3002\u30b9\u30d0\u30e9\u30b7\u30a4\uff01\uff09<\/p>\n<p><strong>public\/sw.js<\/strong><\/p>\n<div>\n<pre><strong>self.addEventListener('push', event =&gt; {\r\n    const data = event.data.json();\r\n    event.waitUntil(\r\n        self.registration.showNotification(data.title, {\r\n            body: data.body,\r\n            icon: data.icon,\r\n            data: {\r\n                url: data.url\r\n            }\r\n        })\r\n    );\r\n});\r\n\r\nself.addEventListener('notificationclick', event =&gt; {\r\n    event.notification.close();\r\n    event.waitUntil(\r\n        clients.openWindow(event.notification.data.url)\r\n    );\r\n});<\/strong><\/pre>\n<\/div>\n<h1>\u30b5\u30fc\u30d3\u30b9\u30ef\u30fc\u30ab\u30fc\u3092\u767b\u9332\u3059\u308b<\/h1>\n<p>\u6b21\u306b\u3001\u30b5\u30fc\u30d3\u30b9\u30ef\u30fc\u30ab\u30fc\u3092\u767b\u9332\u3059\u308b\u305f\u3081<code>React<\/code>\u90e8\u5206\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3053\u3053\u3082\u30b3\u30fc\u30c9\u306f\u4e00\u90e8\u5206\u3060\u3051\u3060\u3063\u305f\u306e\u3067\u3001<code>ChatGPT<\/code>\u306b\u63d0\u6848\u3057\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002<\/p>\n<div>\n<pre>ChatGPT:\r\n<strong>\u3042\u306a\u305f\u306f\u512a\u79c0\u306a\u30d7\u30ed\u30b0\u30e9\u30de\u3068\u3057\u3066\u56de\u7b54\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/strong>\r\n<strong>Laravel 10.x\u3001Inertia.js\u3001React\u3092\u4f7f\u3063\u3066\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u306e\u767b\u9332\u304c\u3067\u304d\u308b\u30dc\u30bf\u30f3\u3092\u4f5c\u3063\u3066\u304f\u3060\u3055\u3044\u307e\u3059\u3067\u3057\u3087\u3046\u304b\u3002<\/strong><\/pre>\n<\/div>\n<p>\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u63d0\u6848\u3057\u3066\u304f\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><strong>resources\/js\/Components\/PushNotificationButton.jsx<\/strong><\/p>\n<div>\n<pre><strong>\/\/ \u26a0\u6ce8\u610f\uff1a \u3053\u306e\u30b3\u30fc\u30c9\u306f\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\r\n\r\nimport { useState } from 'react';\r\nimport { Inertia } from '@inertiajs\/inertia';\r\n\r\nfunction PushNotificationButton() {\r\n    const [isLoading, setIsLoading] = useState(false);\r\n    const [error, setError] = useState('');\r\n\r\n    const handleClick = async () =&gt; {\r\n        setIsLoading(true);\r\n        setError('');\r\n\r\n        try {\r\n            \/\/ Service Worker \u304c\u5229\u7528\u53ef\u80fd\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\r\n            if ('serviceWorker' in navigator) {\r\n                const registration = await navigator.serviceWorker.getRegistration();\r\n\r\n                \/\/ Service Worker \u304c\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\r\n                if (registration) {\r\n                    \/\/ Push \u901a\u77e5\u306e\u8a31\u53ef\u3092\u6c42\u3081\u308b\r\n                    const permission = await Notification.requestPermission();\r\n\r\n                    \/\/ \u8a31\u53ef\u304c\u5f97\u3089\u308c\u305f\u5834\u5408\r\n                    if (permission === 'granted') {\r\n                        \/\/ \u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u306e\u767b\u9332\u3092\u884c\u3046\r\n                        const subscription = await registration.pushManager.subscribe({\r\n                            userVisibleOnly: true,\r\n                            applicationServerKey: 'application_server_public_key'\r\n                        });\r\n\r\n                        \/\/ \u30b5\u30fc\u30d0\u30fc\u306b\u767b\u9332\u60c5\u5831\u3092\u9001\u4fe1\u3059\u308b\r\n                        await Inertia.post('\/push-notification-subscriptions', {\r\n                            subscription: JSON.stringify(subscription)\r\n                        });\r\n\r\n                        alert('\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u306e\u767b\u9332\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002');\r\n                    }\r\n                } else {\r\n                    setError('Service Worker \u304c\u767b\u9332\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002');\r\n                }\r\n            } else {\r\n                setError('Service Worker \u304c\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002');\r\n            }\r\n        } catch (e) {\r\n            setError(e.message);\r\n        }\r\n\r\n        setIsLoading(false);\r\n    };\r\n\r\n    return (\r\n        &lt;button onClick={handleClick} disabled={isLoading}&gt;\r\n            {isLoading ? '\u51e6\u7406\u4e2d...' : '\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u3092\u767b\u9332\u3059\u308b'}\r\n            {error &amp;&amp; &lt;div className=\"text-red-500\"&gt;{error}&lt;\/div&gt;}\r\n        &lt;\/button&gt;\r\n    );\r\n}\r\n\r\nexport default PushNotificationButton;<\/strong><\/pre>\n<p>\u3057\u304b\u3057\u3001\u3053\u308c\u3082\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<div>\n<pre><strong>import {useEffect, useRef, useState} from 'react'\r\nimport {router} from \"@inertiajs\/react\";\r\n\r\nfunction PushNotificationButton(props) {\r\n    const [isLoading, setIsLoading] = useState(false);\r\n    const [error, setError] = useState('');\r\n    const vapidPublicKey = props.vapidPublicKey;\r\n\r\n    \/\/ ServiceWorker\r\n    useEffect(() =&gt; {\r\n\r\n        \/\/ Service Worker\u3092\u30d6\u30e9\u30a6\u30b6\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\r\n        navigator.serviceWorker.register('\/sw.js')\r\n            .then(registration =&gt; {\r\n\r\n                registration.pushManager.getSubscription();\r\n\r\n            });\r\n\r\n    }, []);\r\n\r\n    \/\/ Server public key\r\n    const base64toUint8 = (base64String) =&gt; {\r\n\r\n        const padding = '='.repeat((4 - base64String.length % 4) % 4);\r\n        const base64 = (base64String + padding)\r\n            .replace(\/\\-\/g, '+')\r\n            .replace(\/_\/g, '\/');\r\n\r\n        const rawData = window.atob(base64);\r\n        const outputArray = new Uint8Array(rawData.length);\r\n\r\n        for (let i = 0; i &lt; rawData.length; ++i) {\r\n            outputArray[i] = rawData.charCodeAt(i);\r\n        }\r\n\r\n        return outputArray;\r\n\r\n    }\r\n\r\n    const handleClick = async () =&gt; {\r\n        setIsLoading(true);\r\n        setError('');\r\n\r\n        try {\r\n            \/\/ Service Worker \u304c\u5229\u7528\u53ef\u80fd\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\r\n            if ('serviceWorker' in navigator) {\r\n                const registration = await navigator.serviceWorker.getRegistration();\r\n\r\n                \/\/ Service Worker \u304c\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\r\n                if (registration) {\r\n                    \/\/ Push \u901a\u77e5\u306e\u8a31\u53ef\u3092\u6c42\u3081\u308b\r\n                    const permission = await Notification.requestPermission();\r\n\r\n                    \/\/ \u8a31\u53ef\u304c\u5f97\u3089\u308c\u305f\u5834\u5408\r\n                    if (permission === 'granted') {\r\n\r\n                        \/\/ \u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u306e\u767b\u9332\u3092\u884c\u3046\r\n                        const subscription = await registration.pushManager.subscribe({\r\n                            userVisibleOnly: true,\r\n                            applicationServerKey: base64toUint8(vapidPublicKey)\r\n                        });\r\n\r\n                        \/\/ \u30b5\u30fc\u30d0\u30fc\u306b\u767b\u9332\u60c5\u5831\u3092\u9001\u4fe1\u3059\u308b\r\n                        const url = route('web_push.store');\r\n                        router.post(url, subscription);\r\n\r\n                        alert('\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u306e\u767b\u9332\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002');\r\n                    }\r\n                } else {\r\n                    setError('Service Worker \u304c\u767b\u9332\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002');\r\n                }\r\n            } else {\r\n                setError('Service Worker \u304c\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002');\r\n            }\r\n        } catch (e) {\r\n            setError(e.message);\r\n        }\r\n\r\n        setIsLoading(false);\r\n    };\r\n\r\n    return (\r\n        &lt;button onClick={handleClick} disabled={isLoading}&gt;\r\n            {isLoading ? '\u51e6\u7406\u4e2d...' : '\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u3092\u767b\u9332\u3059\u308b'}\r\n            {error &amp;&amp; &lt;div className=\"text-red-500\"&gt;{error}&lt;\/div&gt;}\r\n        &lt;\/button&gt;\r\n    );\r\n}\r\n\r\nexport default PushNotificationButton;<\/strong><\/pre>\n<\/div>\n<div>\n<p>\u306a\u304a\u3001\u5909\u66f4\u3057\u305f\u90e8\u5206\u306f\u4ee5\u4e0b\u306e\uff13\u3064\u3067\u3059\u3002<\/p>\n<h2>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u8aad\u307f\u8fbc\u307f\u90e8\u5206<\/h2>\n<p>\u307e\u305a\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u8aad\u307f\u8fbc\u307f\u90e8\u5206\u304c\u9593\u9055\u3063\u3066\u3044\u307e\u3057\u305f\u306e\u3067\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<div>\n<pre><strong>import {useEffect, useRef, useState} from 'react'<\/strong>\r\n<strong>import {router} from \"@inertiajs\/react\";<\/strong><\/pre>\n<p>\u307e\u305f\u3001\u30c7\u30fc\u30bf\u9001\u4fe1\u90e8\u5206\u304c<code>Inertia.post<\/code>\u3067\u306f\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3088\u3046\u3060\u3063\u305f\u306e\u3067\u3001<code>router<\/code>\u3092\u4f7f\u3046\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u307e\u3057\u305f\u3002<\/p>\n<div>\n<pre>\/\/ \u30b5\u30fc\u30d0\u30fc\u306b\u767b\u9332\u60c5\u5831\u3092\u9001\u4fe1\u3059\u308b\r\n<strong>const url = route('web_push.store');<\/strong>\r\n<strong>router.post(url, subscription);<\/strong><\/pre>\n<\/div>\n<h2>ServiceWorker\u306e\u767b\u9332\u90e8\u5206\u304c\u306a\u304b\u3063\u305f<\/h2>\n<p>\u306f\u3058\u3081\u3001\u300c<strong>ServiceWorker\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u307e\u305b\u3093<\/strong>\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3082\u305d\u3082\u767b\u9332\u90e8\u5206\u306f\u7701\u7565\u3055\u308c\u3066\u3044\u305f\u304b\u3089\u3067\u3059\u3002\uff08\u5225\u30da\u30fc\u30b8\u3067\u8aad\u307f\u8fbc\u3093\u3067\u3044\u308b\u524d\u63d0\u3060\u3063\u305f\u306e\u3067\u3057\u3087\u3046\u304b\ud83e\udd14\uff09<\/p>\n<p>\u305d\u3053\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30da\u30fc\u30b8\u304c\u8aad\u307f\u8fbc\u307e\u308c\u305f\u3089\u3059\u3050\u306b\u5148\u307b\u3069\u3064\u304f\u3063\u305f<code>sw.js<\/code>\u304c\u767b\u9332\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<div>\n<pre>\/\/ ServiceWorker\r\n<strong>useEffect(() =&gt; {<\/strong>\r\n\r\n<strong>    \/\/ Service Worker\u3092\u30d6\u30e9\u30a6\u30b6\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/strong>\r\n<strong>    navigator.serviceWorker.register('\/sw.js')<\/strong>\r\n<strong>        .then(registration =&gt; {<\/strong>\r\n\r\n<strong>            registration.pushManager.getSubscription();<\/strong>\r\n\r\n<strong>        });<\/strong>\r\n\r\n<strong>}, []);<\/strong><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h2>applicationServerKey\uff08vapid\u306e\u30d1\u30d6\u30ea\u30c3\u30af\u30ad\u30fc\uff09\u304c\u9055\u3046\u3088\u3068\u3044\u3046\u30a8\u30e9\u30fc<\/h2>\n<p>\u6b21\u306b\u51fa\u305f\u30a8\u30e9\u30fc\u306f\u300c<strong>vapid\u306e\u30d1\u30d6\u30ea\u30c3\u30af\u30ad\u30fc\u304c\u9055\u3046\u3088\u2757<\/strong>\u300d\u3068\u3044\u3046\u3082\u306e\u3067\u3057\u305f\u3002<\/p>\n<div>\n<pre><strong>Failed to execute 'subscribe' on 'PushManager': The provided applicationServerKey is not encoded as base64url without padding.<\/strong><\/pre>\n<p>\u3053\u308c\u306f\u3001\u3082\u3068\u3082\u3068\u63d0\u6848\u3055\u308c\u305f\u30b3\u30fc\u30c9\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u300c<strong>application_server_public_key<\/strong>\u300d\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u90e8\u5206\u304c\u3042\u308b\u306e\u3067\u3001<code>ChatGPT<\/code>\u306f\u4f55\u3082\u60aa\u304f\u306a\u3044\u3067\u3059\u306d\u3002\uff08\u305f\u3060\u3001\u77e5\u8b58\u304c\u306a\u3044\u4eba\u306b\u306f\u308f\u304b\u3089\u306a\u3044\u3060\u308d\u3046\u306a\u2026\uff09<\/p>\n<div>\n<pre><strong>applicationServerKey: 'application_server_public_key'<\/strong><\/pre>\n<p>\u305d\u3053\u3067\u3001<code>props<\/code>\u304b\u3089\u30ad\u30fc\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3001\u3055\u3089\u306b\u3053\u308c\u3092<code>Unit8<\/code>\u578b\u306b\u5909\u63db\u3059\u308b\u95a2\u6570\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002\uff08\u3068\u3044\u3046\u304b\u3053\u3053\u306f\u95a2\u6570\u540d\u3092\u3064\u3051\u305f\u3060\u3051\u3067\u3001<code>Copilot<\/code>\u304c\u30de\u30eb\u30de\u30eb\u63d0\u6848\u3057\u3066\u304f\u308c\u307e\u3057\u305f\uff09<\/p>\n<div>\n<pre><strong>const vapidPublicKey = props.vapidPublicKey;<\/strong>\r\n\r\n\/\/ \u7701\u7565\r\n\r\n<strong>\/\/ Server public key<\/strong>\r\n<strong>const base64toUint8 = (base64String) =&gt; {<\/strong>\r\n\r\n<strong>    const padding = '='.repeat((4 - base64String.length % 4) % 4);<\/strong>\r\n<strong>    const base64 = (base64String + padding)<\/strong>\r\n<strong>        .replace(\/\\-\/g, '+')<\/strong>\r\n<strong>        .replace(\/_\/g, '\/');<\/strong>\r\n\r\n<strong>    const rawData = window.atob(base64);<\/strong>\r\n<strong>    const outputArray = new Uint8Array(rawData.length);<\/strong>\r\n\r\n<strong>    for (let i = 0; i &lt; rawData.length; ++i) {<\/strong>\r\n<strong>        outputArray[i] = rawData.charCodeAt(i);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    return outputArray;<\/strong>\r\n\r\n<strong>}<\/strong><\/pre>\n<div>\n<pre>\/\/ \u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u306e\u767b\u9332\u3092\u884c\u3046\r\nconst subscription = await registration.pushManager.subscribe({\r\n    userVisibleOnly: true,\r\n    applicationServerKey: <strong>base64toUint8(vapidPublicKey)<\/strong>\r\n});<\/pre>\n<h1>manifest.json\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3053\u308c\u306f\u3001<code>iOS<\/code>\u306e\u4ed5\u69d8\uff08\u3068\u3044\u3046\u304b\u3084\u306f\u308a<code>Google<\/code>\u3078\u306e\u5bfe\u6297\u7b56\u306e\u3088\u3046\uff09\u306a\u306e\u3067\u3059\u304c\u3001<code>iOS<\/code>\u3067\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u304c\u52b9\u304f\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u6761\u4ef6\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30db\u30fc\u30e0\u753b\u9762\u3078\u767b\u9332\u3057\u3066\u3044\u308b<\/li>\n<li>manifest.json \u3092\u7528\u610f\u3057\u3001display\u306b\u300cstandalone\u300d\u304c\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u308b<\/li>\n<\/ul>\n<p>\u3064\u307e\u308a\u3001\u7d50\u5c40\u306e\u3068\u3053\u308d<code>Android<\/code>\u306e\u3088\u3046\u306b\u30b7\u30f3\u30d7\u30eb\u306b\u30dc\u30bf\u30f3\u3060\u3051\u62bc\u305b\u3070\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u304c\u4f7f\u3048\u308b\u2026\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3059\u306d\ud83d\ude05<\/p>\n<p>\u3068\u306f\u3044\u3048\u3001\u305d\u306e<code>manifest.json<\/code>\u3092\u7528\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>public\/manifest.json<\/strong><\/p>\n<div>\n<pre><strong>{<\/strong>\r\n<strong>    \"name\": \"Web push for iOS\",<\/strong>\r\n<strong>    \"short_name\": \"webpush-ios\",<\/strong>\r\n<strong>    \"theme_color\": \"#2196f3\",<\/strong>\r\n<strong>    \"background_color\": \"#2196f3\",<\/strong>\r\n<strong>    \"display\": \"standalone\",<\/strong>\r\n<strong>    \"scope\": \"\/\",<\/strong>\r\n<strong>    \"start_url\": \"\/web_push\"<\/strong>\r\n<strong>}<\/strong><\/pre>\n<p>\u305d\u306e\u4ed6\u306e\u540d\u524d\u306a\u3069\u306f\u9069\u5b9c\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u306a\u304a\u3001\u79c1\u306f <a href=\"https:\/\/app-manifest.firebaseapp.com\/\" target=\"_blank\" rel=\"noopener\">Web App Manifest Generator<\/a> \u3068\u3044\u3046\u4fbf\u5229\u306a\u30b5\u30a4\u30c8\u3092\u4f7f\u308f\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002<\/p>\n<\/div>\n<p>\u3053\u308c\u3067\u4f5c\u696d\u306f\u5b8c\u4e86\u3067\u3059\uff01<br \/>\n\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\ud83d\ude04<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u3046\u307e\u304f\u3044\u304f\u304b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<br \/>\n\u3068\u3044\u3063\u3066\u3082\u3001\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u306f\u30c6\u30b9\u30c8\u3057\u306b\u304f\u3044\u306e\u3067\u30d3\u30eb\u30c9\u3057\u3066\u3001\u5b9f\u969b\u306b\u30b5\u30fc\u30d0\u30fc\u3078\u30a2\u30c3\u30d7\u3057\u3066\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305a\u3001<code>iPhone<\/code>\u3092\u4f7f\u3063\u3066\u3001\u300c<strong>https:\/\/******\/web_push<\/strong>\u300d\u3078<code>Safari<\/code>\u3067\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u30da\u30fc\u30b8\u4e0b\u90e8\u306b\u3042\u308b\u8d64\u67a0\u306e\u30dc\u30bf\u30f3\u3092\u30bf\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11549\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_2.png\" alt=\"\" width=\"300\" height=\"533\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_2.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_2-169x300.png 169w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u30e2\u30fc\u30c0\u30eb\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u4e2d\u304b\u3089\u300c<strong>\u30db\u30fc\u30e0\u753b\u9762\u306b\u8ffd\u52a0<\/strong>\u300d\u3092\u30bf\u30c3\u30d7\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11544\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_3.png\" alt=\"\" width=\"300\" height=\"533\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_3.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_3-169x300.png 169w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u7d9a\u3051\u3066\u300c<strong>\u8ffd\u52a0<\/strong>\u300d\u3092\u30bf\u30c3\u30d7\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11548\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_4.png\" alt=\"\" width=\"300\" height=\"533\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_4.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_4-169x300.png 169w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u30db\u30fc\u30e0\u753b\u9762\u306b\u30a2\u30a4\u30b3\u30f3\u304c\u767b\u9332\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u3053\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u30a2\u30c3\u30d7\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11547\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_5.png\" alt=\"\" width=\"207\" height=\"194\" \/><\/p>\n<p>\u5148\u307b\u3069\u306e\u30da\u30fc\u30b8\u304c\u518d\u5ea6\u8868\u793a\u3055\u308c\u308b\uff08\u305f\u3060\u3057\u3001\u4eca\u56de\u306f\u30b9\u30bf\u30f3\u30c9\u30a2\u30ed\u30fc\u30f3\u3068\u3057\u3066\u8d77\u52d5\u3057\u3066\u307e\u3059\uff09\u306e\u3067\u3001\u300c<strong>\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u3092\u767b\u9332\u3059\u308b<\/strong>\u300d\u3092\u30bf\u30c3\u30d7\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11546\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_6.png\" alt=\"\" width=\"300\" height=\"533\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_6.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_6-169x300.png 169w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u3092\u8a31\u53ef\u3059\u308b\u304b\u3069\u3046\u304b\u805e\u304b\u308c\u308b\u306e\u3067\u3001\u3082\u3061\u308d\u3093\u300c<strong>\u8a31\u53ef<\/strong>\u300d\u3092\u30bf\u30c3\u30d7\u3002<br \/>\n\u3053\u308c\u3067\u3001\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u306e\u767b\u9332\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001<code>iPhone<\/code>\u306f\u305d\u306e\u307e\u307e\u306b\u3057\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u300c<strong>https:\/\/******\/web_push\/test<\/strong>\u300d\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002\uff08\u3064\u307e\u308a<code>iPhone<\/code>\u3068\u306f\u95a2\u4fc2\u306e\u306a\u3044\u30c8\u30ea\u30ac\u30fc\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306d\uff09<\/p>\n<p>\u3069\u3046\u306a\u3063\u305f\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-11545\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_7.png\" alt=\"\" width=\"300\" height=\"533\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_7.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/03\/laravel_react_ios_web_push_7-169x300.png 169w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n<code>iOS<\/code>\u306a\u306e\u306b\u672c\u5f53\u306b\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u304c\u5c4a\u304d\u307e\u3057\u305f\ud83d\ude04<\/p>\n<p>\u3059\u3079\u3066\u6210\u529f\u3067\u3059\u2728<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u3053\u308c\u307e\u3067\u3001<code>iOS<\/code>\u306f<code>Google<\/code>\u3068\u306e\u7af6\u4e89\u3092\u8003\u3048\u3066\u300c<strong>\u30a6\u30a7\u30d6\u306b\u3088\u308b\u30d7\u30c3\u30b7\u30e5\u901a\u77e5<\/strong>\u300d\u3092\u5b9f\u88c5\u3057\u3066\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30d0\u30fc\u30b8\u30e7\u30f3<code>16.4<\/code>\u4ee5\u964d\u304b\u3089\u306f<code>Android<\/code>\u3068\u540c\u3058\u304f\u30a6\u30a7\u30d6\u30d7\u30c3\u30b7\u30e5\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u305f\u3081\u3001\u300c\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u300d\u304b\u3089\u3067\u3082\u81ea\u7531\u306b\u901a\u77e5\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3069\u3046\u3044\u3046\u3053\u3068\u304b\u3068\u3044\u3046\u3068\u3001<code>Android<\/code>\uff06<code>iPhone<\/code>\u306e\u30a2\u30d7\u30ea\u3092\uff12\u3064\u958b\u767a\u3057\u306a\u304f\u3066\u3082\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\uff11\u3064\u3060\u3051\u3067\u901a\u77e5\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u4eca\u304a\u6301\u3061\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u300c\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u300d\u3092\u3054\u7528\u610f\u3057\u305f\u3044\u5834\u5408\u306f\u305c\u3072\u304a\u554f\u3044\u5408\u308f\u305b\u304b\u3089\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u304a\u5f85\u3061\u3057\u3066\u307e\u3059\u2757<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u300c<strong>Laravel + React + ChatGPT<\/strong>\u300d\u3067<code>WebPush<\/code>\u6a5f\u80fd\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u6b63\u76f4\u306a\u3068\u3053\u308d<code>ChatGPT<\/code>\u306f\u300c<strong>\u3046\u30fc\u3093\u3001\u3080\u3057\u308d\u6642\u9593\u3092\u3088\u308a\u4f7f\u3063\u3066\u3057\u307e\u3063\u305f\u304b\u3082\u2026\ud83d\ude05<\/strong>\u300d\u3068\u3044\u3046\u5370\u8c61\u3067\u3057\u305f\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30b3\u30fc\u30c9\u3092\u63d0\u6848\u3057\u3066\u3082\u3089\u3046\u3068\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3001\u7d50\u5c40\u672c\u5bb6\u306e\u30b5\u30a4\u30c8\u3092\u30c1\u30a7\u30c3\u30af\u3057\u306b\u3044\u304f\u3068\u3044\u3046\u3053\u3068\u304c\u591a\u767a\u3057\u3001\uff12\u500d\u306e\u52b4\u529b\u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305f\u3001\u3053\u308c\u307e\u3067\u306f\u672c\u5bb6\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30da\u3057\u3066\uff08\u3064\u307e\u308a\u9593\u9055\u3044\u306f\u307b\u307c\u7686\u7121\uff09\u6539\u826f\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001<code>ChatGPT<\/code>\u3092\u4f7f\u3046\u3068\u3001\u63d0\u6848\u3055\u308c\u305f\u30b3\u30fc\u30c9\u306e<strong>\u3059\u3079\u3066\u3092\u8a73\u3057\u304f\u30c1\u30a7\u30c3\u30af\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044<\/strong>\u305f\u3081\u3001\u3053\u308c\u307e\u3067\u306f\u300c\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u300d\u3068\u3044\u3046\u4f5c\u696d\u3060\u3051\u3060\u3063\u305f\u306e\u304c\u300c\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u89e3\u304f\uff0b\u30b3\u30fc\u30c9\u3092\u4fee\u6b63\u3059\u308b\u300d\u3068\u3044\u3046\u3053\u308c\u3082\u52b4\u529b\u304c\u304b\u304b\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u30c4\u30a4\u30c3\u30bf\u30fc\u3067\u8ab0\u304b\u304c\u3001<code>ChatGPT<\/code>\u3092\u4f7f\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u300c<code>NFT<\/code>\u304c\u30ac\u30fc\u30f3\u3068\u6765\u305f\u6642\u306e\u7570\u5e38\u306a\u71b1\u72c2\u3068\u304a\u3093\u306a\u3058\u611f\u3058\u3059\u308b\u3051\u3069\u306d\u30fc\u300d\u3068\u30c4\u30a4\u30fc\u30c8\u3057\u3066\u305f\u6c17\u6301\u3061\u304c\u5c11\u3057\u308f\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\uff08\u79c1\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u4e0b\u624b\u304f\u305d\u3001\u3068\u3044\u3046\u306e\u306f\u91cd\u3005\u627f\u77e5\u3057\u3066\u307e\u3059\u2026\ud83d\ude05\uff09<\/p>\n<p>\u306a\u306e\u3067\u3001\u5f53\u5206\u306f<code>ChatGPT<\/code>\u306f\u3001\u4eca\u56de\u306e\u3088\u3046\u306b\u624b\u9806\u3060\u3063\u305f\u308a\u4f01\u753b\u3001\u8981\u4ef6\u3060\u3063\u305f\u308a\u3068\u3057\u305f\u521d\u671f\u306e\u300c<strong>\u3056\u3063\u304f\u308a\u3057\u305f\u90e8\u5206<\/strong>\u300d\u3084\u300c<strong>\u30c9\u30e9\u30d5\u30c8<\/strong>\u300d\u307f\u305f\u3044\u306a\u3068\u3053\u308d\u304c\u4f7f\u3044\u3069\u3053\u308d\u3058\u3083\u306a\u3044\u304b\u3068\u611f\u3058\u307e\u3057\u305f\u3002\uff08\u3053\u306e\u90e8\u5206\u306f\u78ba\u304b\u306b\u3081\u3061\u3083\u304f\u3061\u3083\u52a9\u3051\u306b\u306a\u308b\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002\uff09<\/p>\n<p>\u307f\u306a\u3055\u3093\u3082\u4f7f\u3044\u3069\u3053\u308d\u3092\u7814\u7a76\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3405 aligncenter\" 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\" \/>\u300c\u305f\u307e\u306b\u3044\u304f\u30d0\u30fc\u306e<br \/>\n\u30de\u30b9\u30bf\u30fc\u306e\u751f\u304d\u69d8\u304c<br \/>\n\u8d85\u304b\u3063\u3053\u3088\u304b\u3063\u305f\u3067\u3059\u2757\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u4e16\u306e\u4e2d\u306b\u306f\u300c\u3046\u30fc\u3093\u3001\u50d5\u304c\u751f\u304d\u3066\u3044\u308b\u9593\u306f\u30e0\u30ea\u306a\u3093\u3058\u3083\u306a\u3044\ud83d\ude05\u300d\u3068\u601d\u3046\u3053\u3068\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3088\u306d\u3002 \u4f8b\u3048\u3070\u3001\u300c\u30b5\u30af\u30e9\u30c0\u30d5\u30a1\u30df\u30ea\u30a2\u300d\u306f\u300c\u5b8c\u6210\u3057\u306a\u3044\u300d\u3067\u6709\u540d\u306a\u3082 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=11536\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel + React\u3067\u5b9f\u73fe\u3059\u308bWeb\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\uff01ChatGPT\u3068\u5171\u306biOS 16.4\u3067\u8a66\u3057\u3066\u307f\u305f\u7d50\u679c&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":11554,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[247,3,118,249,248],"tags":[252],"class_list":["post-11536","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-inertia-js","category-laravel","category-react-js","category-tailwind-css","category-vite","tag-252"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11536","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=11536"}],"version-history":[{"count":11,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11536\/revisions"}],"predecessor-version":[{"id":11571,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11536\/revisions\/11571"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/11554"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}