{"id":7341,"date":"2020-05-18T15:00:50","date_gmt":"2020-05-18T06:00:50","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=7341"},"modified":"2020-05-08T16:31:17","modified_gmt":"2020-05-08T07:31:17","slug":"laravel%e3%81%a7%e3%83%ac%e3%83%93%e3%83%a5%e3%83%bc%e6%a9%9f%e8%83%bd%ef%bc%88%e6%98%9f%ef%bc%86%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88%ef%bc%89%e3%82%92%e3%81%a4%e3%81%8f%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=7341","title":{"rendered":"Laravel\u3067\u30ec\u30d3\u30e5\u30fc\u6a5f\u80fd\uff08\u661f\uff06\u30b3\u30e1\u30f3\u30c8\uff09\u3092\u3064\u304f\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593<a href=\"https:\/\/blog.capilano-fw.com\/?p=7292\">\u300c\u5165\u8377\u3057\u305f\u3089\u30e1\u30fc\u30eb\u3067\u304a\u77e5\u3089\u305b\u300d\u6a5f\u80fd\u3092\u3064\u304f\u308b<\/a>\u3068\u3044\u3046\u8a18\u4e8b\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u304c\u3001\u8a18\u4e8b\u306e\u5192\u982d\u3067\u3082\u66f8\u3044\u305f\u3068\u304a\u308a\u30cd\u30c3\u30c8\u30b5\u30fc\u30d5\u30a3\u30f3\u3057\u3066\u3044\u3066\u300c<strong>\u3042\u2757\u3053\u308c\u3064\u304f\u3063\u3066\u307f\u305f\u3044<\/strong>\u300d\u3068\u306a\u3063\u305f\u3053\u3068\u304c\u59cb\u307e\u308a\u3067\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u540c\u3058\u304f<code>Amazon<\/code>\u3067\u3082\u30a6\u30a3\u30f3\u30c9\u30a6\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u3057\u3066\u305f\u3089\u3001\u307e\u305f\u300c<strong>\u3053\u308c\u3082\u3064\u304f\u3063\u3066\u307f\u305f\u3044<\/strong>\u300d\u3068\u601d\u3046\u6a5f\u80fd\u3092\u767a\u898b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u304c\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">\u30ec\u30d3\u30e5\u30fc\u6a5f\u80fd\uff08\u661f\u3068\u30b3\u30e1\u30f3\u30c8\uff09<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u7686\u3055\u3093\u3082\u3088\u304f\u77e5\u3063\u3066\u306e\u3068\u304a\u308a<code>Amazon<\/code>\u3067\u304a\u8cb7\u3044\u7269\u3092\u3059\u308b\u3068\u3001\u305d\u306e\u5546\u54c1\u304c\u826f\u304b\u3063\u305f\u304b\u3069\u3046\u304b\u3092\u661f\uff08\uff15\u6bb5\u968e\uff09\u3068\u6587\u7ae0\u3067\u6295\u7a3f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u306e\u30ec\u30d3\u30e5\u30fc\u6a5f\u80fd\u3092<code>Laravel<\/code>\u3067\u3064\u304f\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u305c\u3072\u7686\u3055\u3093\u306e\u304a\u5f79\u306b\u7acb\u3066\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\ud83d\ude0a\u2728<\/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\u30ec\u30d3\u30e5\u30fc\u6a5f\u80fd\u3063\u3066<br \/>\n\u8003\u3048\u305f\u4eba\u3059\u3054\u3044\u3067\u3059\u3088\u306d\ud83d\udc4d\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 7.x<\/p>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p><code>Laravel<\/code>\u306b\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u3066\u3001\u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u307e\u3060\u6e96\u5099\u3055\u308c\u3066\u3044\u306a\u3044\u65b9\u306f\u300c<a href=\"https:\/\/blog.capilano-fw.com\/?p=4576\">Laravel6.x\u4ee5\u964d\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/a>\u300d\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u3053\u3093\u306a\u30ab\u30f3\u30b8\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7358\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_11.png\" alt=\"\" width=\"526\" height=\"461\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_11.png 526w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_11-300x263.png 300w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/p>\n<h1>\u30e2\u30c7\u30eb\uff06\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u304f\u308b<\/h1>\n<p>\u307e\u305a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u307e\u308f\u308a\u304b\u3089\u3084\u3063\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u5fc5\u8981\u306b\u306a\u308b\u306e\u306f\u3001\u6b21\u306e\uff12\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>Product\uff1a \u5546\u54c1<\/li>\n<li>ProductReview\uff1a\u5546\u54c1\u306e\u30ec\u30d3\u30e5\u30fc<\/li>\n<\/ul>\n<p>\u3064\u307e\u308a\u3001<code>Product<\/code>\u3068<code>ProductReview<\/code>\u306f\u300c<strong>\uff11\uff1a\u591a<\/strong>\u300d\u306e\u95a2\u4fc2\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001<code>Product<\/code>\u304b\u3089\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:model Product -m<\/strong><\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3089\u3001\u307e\u305a\u30e2\u30c7\u30eb\u306b\u300c<strong>\uff11\uff1a\u591a<\/strong>\u300d\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p><strong><code>\/app\/Product.php<\/code><\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App;\r\n\r\nuse Illuminate\\Database\\Eloquent\\Model;\r\n\r\nclass Product extends Model\r\n{\r\n    <strong>\/\/ \u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7<\/strong>\r\n<strong>    public function reviews() { \/\/ \ud83d\udc48 \u8ffd\u52a0<\/strong>\r\n\r\n<strong>        return $this-&gt;hasMany(\\App\\ProductReview::class, 'product_id', 'id');<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u305d\u3057\u3066\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306f\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><code><strong>\/database\/migrations\/****_**_**_******_create_products_table.php<\/strong><\/code><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\npublic function up()\r\n{\r\n    Schema::create('products', function (Blueprint $table) {\r\n        $table-&gt;id();\r\n        <strong>$table-&gt;string('name')-&gt;comment('\u5546\u54c1\u540d'); \/\/ \ud83d\udc48 \u8ffd\u52a0<\/strong>\r\n        $table-&gt;timestamps();\r\n    });\r\n}\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<p>\u6b21\u306b\u3001<code>ProductReview<\/code>\u3067\u3059\u3002<br \/>\n\u540c\u3058\u304f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:model ProductReview -m<\/strong><\/pre>\n<p>\u3053\u3061\u3089\u306b\u3082\u3001<code>users<\/code>\u30c6\u30fc\u30d6\u30eb\u3068\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\u3092\u3064\u304f\u308a\u307e\u3059\u3002\u30ec\u30d3\u30e5\u30fc\u306f\u30e6\u30fc\u30b6\u30fc\u306b\u6240\u5c5e\u3057\u3066\u3044\u308b\u306e\u3067<code>belongsTo<\/code>\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App;\r\n\r\nuse Illuminate\\Database\\Eloquent\\Model;\r\n\r\nclass ProductReview extends Model\r\n{\r\n    <strong>\/\/ \u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7<\/strong>\r\n<strong>    public function user() { \/\/ \ud83d\udc48 \u8ffd\u52a0<\/strong>\r\n\r\n<strong>        return $this-&gt;belongsTo(\\App\\User::class, 'user_id', 'id')<\/strong>\r\n<strong>            -&gt;select('id', 'name');<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u305d\u3057\u3066\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3082\u3053\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><code><strong>\/database\/migrations\/****_**_**_******_create_product_reviews_table.php<\/strong><\/code><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\npublic function up()\r\n{\r\n    Schema::create('product_reviews', function (Blueprint $table) {\r\n        $table-&gt;id();\r\n        <strong>$table-&gt;unsignedBigInteger('product_id')-&gt;default(0)-&gt;comment('\u5546\u54c1ID');<\/strong>\r\n<strong>        $table-&gt;unsignedBigInteger('user_id')-&gt;default(0)-&gt;comment('\u30e6\u30fc\u30b6\u30fcID');<\/strong>\r\n<strong>        $table-&gt;integer('stars')-&gt;default(0)-&gt;comment('\u661f');<\/strong>\r\n<strong>        $table-&gt;text('comment')-&gt;comment('\u30b3\u30e1\u30f3\u30c8');<\/strong>\r\n        $table-&gt;timestamps();\r\n\r\n        <strong>$table-&gt;foreign('product_id')-&gt;references('id')-&gt;on('products');<\/strong>\r\n<strong>        $table-&gt;foreign('user_id')-&gt;references('id')-&gt;on('users');<\/strong>\r\n<strong>        $table-&gt;unique(['product_id', 'user_id']);<\/strong>\r\n    });\r\n}\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u4e00\u5ea6\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre><strong>php artisan migrate<\/strong><\/pre>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7344\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_1.png\" alt=\"\" width=\"350\" height=\"232\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_1.png 350w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_1-300x199.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7347\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_2.png\" alt=\"\" width=\"334\" height=\"294\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_2.png 334w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_2-300x264.png 300w\" sizes=\"auto, (max-width: 334px) 100vw, 334px\" \/><\/p>\n<h1>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u3064\u304f\u308b<\/h1>\n<p>\u6b21\u306b<code>Product<\/code>\u306b\u306f\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u304c\u307b\u3057\u3044\u306e\u3067<code>Seeder<\/code>\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:seed ProductsTableSeeder<\/strong><\/pre>\n<p>\u4e2d\u8eab\u306f\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><strong><code>\/database\/seeds\/ProductsTableSeeder.php<\/code><\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\npublic function run()\r\n{\r\n<strong>    for($i = 1 ; $i &lt;= 25 ; $i++) { \/\/ \ud83d\udc48 \u8ffd\u52a0<\/strong>\r\n\r\n<strong>        $product = new \\App\\Product();<\/strong>\r\n<strong>        $product-&gt;name = '\u30c6\u30b9\u30c8\u5546\u54c1\u540d - '. $i;<\/strong>\r\n<strong>        $product-&gt;save();<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<p>\u7d9a\u3044\u3066\u3001<code>ProductsTableSeeder<\/code>\u3092<code>Laravel<\/code>\u306b\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<p><strong><code>\/database\/seeds\/DatabaseSeeder.php<\/code><\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\npublic function run()\r\n{\r\n     \/\/$this-&gt;call(UsersTableSeeder::class);\r\n     <strong>$this-&gt;call(ProductsTableSeeder::class); \/\/ \ud83d\udc48 \u8ffd\u52a0<\/strong>\r\n}\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<p>\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u8ffd\u52a0\u3092\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>php artisan migrate:fresh --seed<\/strong><\/pre>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7342\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_3.png\" alt=\"\" width=\"520\" height=\"412\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_3.png 520w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_3-300x238.png 300w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/p>\n<h1>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u6b21\u306b\u3001\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30eb\u30fc\u30c8\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>Route::get('product', 'ProductController@index');<\/strong>\r\n<strong>Route::get('product\/list', 'ProductController@list');<\/strong>\r\n<strong>Route::post('product\/review', 'ProductController@review');<\/strong><\/pre>\n<p>\uff11\u884c\u76ee\u304c\u76f4\u63a5\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3082\u306e\u3067\u3001\uff12\u884c\u76ee\u304c<code>Ajax<\/code>\u3092\u5546\u54c1\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u3001\u305d\u3057\u3066\uff13\u884c\u76ee\u304c\u30ec\u30d3\u30e5\u30fc\u3092\u6295\u7a3f\u3059\u308b\u30eb\u30fc\u30c8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u30eb\u30fc\u30c8\u3067\u8a2d\u5b9a\u3057\u305f<code>ProductController<\/code>\u3092\u4f5c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:controller ProductController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong><code>\/app\/Http\/Controllers\/ProductController.php<\/code><\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass ProductController extends Controller\r\n{\r\n    public function index() {\r\n\r\n        return view('product.index');\r\n\r\n    }\r\n\r\n    public function list() {\r\n\r\n        return \\App\\Product::with('reviews.user')-&gt;get();\r\n\r\n    }\r\n\r\n    public function review(Request $request) {\r\n\r\n        $result = false;\r\n\r\n        \/\/ \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\r\n        $request-&gt;validate([\r\n            'product_id' =&gt; [\r\n                'required',\r\n                'exists:products,id',\r\n                <strong>function($attribute, $value, $fail) use($request) {\r\n\r\n                    \/\/ \u30ed\u30b0\u30a4\u30f3\u3057\u3066\u308b\u304b\u30c1\u30a7\u30c3\u30af\r\n                    if(!auth()-&gt;check()) {\r\n\r\n                        $fail('\u30ec\u30d3\u30e5\u30fc\u3059\u308b\u306b\u306f\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\u3002');\r\n                        return;\r\n\r\n                    }\r\n\r\n                    \/\/ \u3059\u3067\u306b\u30ec\u30d3\u30e5\u30fc\u6295\u7a3f\u3057\u3066\u308b\u304b\u30c1\u30a7\u30c3\u30af\r\n                    $exists = \\App\\ProductReview::where('user_id', $request-&gt;user()-&gt;id)\r\n                        -&gt;where('product_id', $request-&gt;product_id)\r\n                        -&gt;exists();\r\n\r\n                    if($exists) {\r\n\r\n                        $fail('\u3059\u3067\u306b\u30ec\u30d3\u30e5\u30fc\u306f\u6295\u7a3f\u6e08\u307f\u3067\u3059\u3002');\r\n                        return;\r\n\r\n                    }\r\n\r\n                }<\/strong>\r\n            ],\r\n            'stars' =&gt; 'required|integer|min:1|max:5',\r\n            'comment' =&gt; 'required'\r\n        ]);\r\n\r\n        $review = new \\App\\ProductReview();\r\n        $review-&gt;product_id = $request-&gt;product_id;\r\n        $review-&gt;user_id = $request-&gt;user()-&gt;id;\r\n        $review-&gt;stars = $request-&gt;stars;\r\n        $review-&gt;comment = $request-&gt;comment;\r\n        $result = $review-&gt;save();\r\n        return ['result' =&gt; $result];\r\n\r\n    }\r\n}<\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u91cd\u8981\u306a\u306e\u304c<code>review()<\/code>\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<p><code>review()<\/code>\u3067\u306f\u3001\u307e\u305a\u9001\u4fe1\u5185\u5bb9\u3092\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3067\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3059\u304c\u3001<code>product_id<\/code>\u306b\u300c\u72ec\u81ea\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u300d\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u306e\u72ec\u81ea\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u4ee5\u4e0b\u306e\uff12\u3064\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u304b<\/li>\n<li>\u30ec\u30d3\u30e5\u30fc\u6295\u7a3f\u306f\u307e\u3060\u6295\u7a3f\u3057\u3066\u3044\u306a\u3044\u304b<\/li>\n<\/ul>\n<p>\u3064\u307e\u308a\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u30e6\u30fc\u30b6\u30fcID\u304c\u53d6\u5f97\u3067\u304d\u306a\u3044\u306e\u3067\u5b9f\u884c\u3092\u62d2\u5426\u3057\u3001\u3055\u3089\u306b\u540c\u3058\u5546\u54c1\u306b\u91cd\u8907\u3057\u3066\u30ec\u30d3\u30e5\u30fc\u6295\u7a3f\u3055\u305b\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u203b\u306a\u304a\u3001\u72ec\u81ea\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u5225\u306e\u5834\u6240\u3067\u3082\u4f7f\u3046\u5834\u5408\u306f\u3001\u4eca\u56de\u306e\u3088\u3046\u306a\u66f8\u304d\u65b9\u306f\u305b\u305a\u3001<code>AppServiceProvider<\/code>\u306b\u3057\u3063\u304b\u308a\u72ec\u81ea\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u5b9a\u7fa9\u3059\u308b\u65b9\u304c\u3044\u3044\u3067\u3057\u3087\u3046\u3002\uff08\u4f7f\u3044\u56de\u3057\u304c\u3067\u304d\u307e\u3059\u306e\u3067\ud83d\udc4d\uff09<\/p>\n<h1>\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u6700\u5f8c\u306b\u30d3\u30e5\u30fc\uff08HTML\u90e8\u5206\uff09\u3067\u3059\u3002<\/p>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;link href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.4.1\/css\/bootstrap.min.css\" rel=\"stylesheet\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div id=\"app\" class=\"p-3\"&gt;\r\n    &lt;h1 class=\"mb-3\"&gt;\u30ec\u30d3\u30e5\u30fc\uff08\u661f\uff06\u30b3\u30e1\u30f3\u30c8\uff09\u6a5f\u80fd\u30fb\u30b5\u30f3\u30d7\u30eb&lt;\/h1&gt;\r\n    &lt;table class=\"table table-bordered mt-4\"&gt;\r\n        &lt;thead class=\"bg-info text-white\"&gt;\r\n        &lt;tr&gt;\r\n            &lt;th&gt;ID&lt;\/th&gt;\r\n            &lt;th&gt;\u5546\u54c1\u540d&lt;\/th&gt;\r\n            &lt;th&gt;\u30ec\u30d3\u30e5\u30fc&lt;\/th&gt;\r\n        &lt;\/tr&gt;\r\n        &lt;\/thead&gt;\r\n        &lt;tbody&gt;\r\n        <strong>&lt;!-- \u5546\u54c1\u30c7\u30fc\u30bf\u3092\u30ea\u30b9\u30c8\u8868\u793a\u30fb\u30fb\u30fb \u2460 --&gt;<\/strong>\r\n<strong>        &lt;tr v-for=\"p in products\"&gt;<\/strong>\r\n<strong>            &lt;td v-text=\"p.id\"&gt;&lt;\/td&gt;<\/strong>\r\n<strong>            &lt;td v-text=\"p.name\"&gt;&lt;\/td&gt;<\/strong>\r\n<strong>            &lt;td&gt;<\/strong>\r\n<strong>                &lt;a href=\"#\" type=\"button\" v-if=\"!hasMyReview(p.reviews)\" @click.prevent=\"openReviewForm(p.id)\"&gt;<\/strong>\r\n<strong>                    \u30ec\u30d3\u30e5\u30fc\u3092\u6295\u7a3f<\/strong>\r\n<strong>                &lt;\/a&gt;<\/strong>\r\n<strong>                &lt;!-- \u30ec\u30d3\u30e5\u30fc\u3092\u30ea\u30b9\u30c8\u8868\u793a \u30fb\u30fb\u30fb \u2461 --&gt;<\/strong>\r\n<strong>                &lt;div v-for=\"r in p.reviews\"&gt;<\/strong>\r\n<strong>                    &lt;div class=\"p-3 bg-light mt-2\"&gt;<\/strong>\r\n<strong>                        &lt;span class=\"font-weight-bold\" v-text=\"r.user.name\"&gt;&lt;\/span&gt;<\/strong>\r\n<strong>                        &lt;v-star :value=\"r.stars\"&gt;&lt;\/v-star&gt;<\/strong>\r\n<strong>                        &lt;div class=\"text-break mt-1\" style=\"white-space:pre;\" v-text=\"r.comment\"&gt;&lt;\/div&gt;<\/strong>\r\n<strong>                    &lt;\/div&gt;<\/strong>\r\n<strong>                &lt;\/div&gt;<\/strong>\r\n<strong>            &lt;\/td&gt;<\/strong>\r\n<strong>        &lt;\/tr&gt;<\/strong>\r\n        &lt;\/tbody&gt;\r\n    &lt;\/table&gt;\r\n    <strong>&lt;!-- \u30ec\u30d3\u30e5\u30fc\u6295\u7a3f\u306e\u30e2\u30fc\u30c0\u30eb \u30fb\u30fb\u30fb \u2462 --&gt;<\/strong>\r\n<strong>    &lt;div class=\"modal fade\" id=\"review-modal\"&gt;<\/strong>\r\n<strong>        &lt;div class=\"modal-dialog\" role=\"document\"&gt;<\/strong>\r\n<strong>            &lt;div class=\"modal-content\"&gt;<\/strong>\r\n<strong>                &lt;div class=\"modal-header\"&gt;<\/strong>\r\n<strong>                    &lt;h5 class=\"modal-title\" id=\"review-modalLabel\"&gt;&amp;#x1F4AC; \u30ec\u30d3\u30e5\u30fc\u306e\u6295\u7a3f&lt;\/h5&gt;<\/strong>\r\n<strong>                    &lt;button type=\"button\" class=\"close\" data-dismiss=\"modal\"&gt;<\/strong>\r\n<strong>                        &lt;span aria-hidden=\"true\"&gt;&amp;times;&lt;\/span&gt;<\/strong>\r\n<strong>                    &lt;\/button&gt;<\/strong>\r\n<strong>                &lt;\/div&gt;<\/strong>\r\n<strong>                &lt;div class=\"modal-body\"&gt;<\/strong>\r\n<strong>                    &lt;div class=\"form-group\"&gt;<\/strong>\r\n<strong>                        &lt;h4&gt;\u30b9\u30bf\u30fc&lt;\/h4&gt;<\/strong>\r\n<strong>                        &lt;div v-for=\"star in [5,4,3,2,1]\"&gt;<\/strong>\r\n<strong>                            &lt;input v-model=\"reviewParams.stars\" type=\"radio\" :value=\"star\"&gt;<\/strong>\r\n<strong>                            &lt;v-star :value=\"star\"&gt;&lt;\/v-star&gt;<\/strong>\r\n<strong>                        &lt;\/div&gt;<\/strong>\r\n<strong>                    &lt;\/div&gt;<\/strong>\r\n<strong>                    &lt;div class=\"form-group\"&gt;<\/strong>\r\n<strong>                        &lt;h4&gt;\u30b3\u30e1\u30f3\u30c8&lt;\/h4&gt;<\/strong>\r\n<strong>                        &lt;textarea class=\"form-control\" v-model=\"reviewParams.comment\"&gt;&lt;\/textarea&gt;<\/strong>\r\n<strong>                    &lt;\/div&gt;<\/strong>\r\n<strong>                &lt;\/div&gt;<\/strong>\r\n<strong>                &lt;div class=\"modal-footer\"&gt;<\/strong>\r\n<strong>                    &lt;button type=\"button\" class=\"btn btn-link mr-2\" data-dismiss=\"modal\"&gt;\u9589\u3058\u308b&lt;\/button&gt;<\/strong>\r\n<strong>                    &lt;button type=\"button\" class=\"btn btn-warning\" @click=\"onSubmit\"&gt;\u767b\u9332\u3059\u308b&lt;\/button&gt;<\/strong>\r\n<strong>                &lt;\/div&gt;<\/strong>\r\n<strong>            &lt;\/div&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n<strong>    &lt;\/div&gt;<\/strong>\r\n&lt;\/div&gt;\r\n&lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/vue\/2.6.11\/vue.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/axios\/0.19.2\/axios.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"https:\/\/code.jquery.com\/jquery-3.5.1.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.4.1\/js\/bootstrap.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script&gt;\r\n\r\n    <strong>\/\/\u3000\u661f\u3092\u8868\u793a\u3059\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8 \u30fb\u30fb\u30fb \u2463<\/strong>\r\n<strong>    Vue.component('v-star', {<\/strong>\r\n<strong>        props: ['value'],<\/strong>\r\n<strong>        template: '&lt;span&gt;&lt;span v-for=\"number in parseInt(value)\"&gt;&amp;#x2B50;&lt;\/span&gt;&lt;\/span&gt;'<\/strong>\r\n<strong>    });<\/strong>\r\n\r\n    new Vue({\r\n        el: '#app',\r\n        data: {\r\n            <strong>userId: parseInt('{{ auth()-&gt;user()-&gt;id ?? -1 }}'), \/\/ \u30ed\u30b0\u30a4\u30f3\u30fb\u30e6\u30fc\u30b6\u30fcID \u30fb\u30fb\u30fb \u2464<\/strong>\r\n            products: [],\r\n            reviewParams: {\r\n                product_id: '',\r\n                stars: '',\r\n                comment: ''\r\n            }\r\n        },\r\n        methods: {\r\n            getProducts() {\r\n\r\n                axios.get('\/product\/list')\r\n                    .then(response =&gt; {\r\n\r\n                        this.products = response.data;\r\n\r\n                    });\r\n\r\n            },\r\n            openReviewForm(productId) {\r\n\r\n                this.reviewParams = {\r\n                    product_id: productId,\r\n                    stars: '',\r\n                    comment: ''\r\n                };\r\n                $('#review-modal').modal('show');\r\n\r\n            },\r\n            <strong>hasMyReview(reviews) { \/\/ \u3059\u3067\u306b\u6295\u7a3f\u6e08\u307f\u304b\u3069\u3046\u304b\u306e\u30c1\u30a7\u30c3\u30af \u30fb\u30fb\u30fb \u2465<\/strong>\r\n\r\n<strong>                for(let review of reviews) {<\/strong>\r\n\r\n<strong>                    if(this.userId === parseInt(review.user_id)) {<\/strong>\r\n\r\n<strong>                        return true;<\/strong>\r\n\r\n<strong>                    }<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>                return false;<\/strong>\r\n\r\n<strong>            }<\/strong>,\r\n            onSubmit(productId) {\r\n\r\n                axios.post('\/product\/review', this.reviewParams)\r\n                    .then(response =&gt; {\r\n\r\n                        if(response.data.result === true) {\r\n\r\n                            this.getProducts();\r\n                            $('#review-modal').modal('hide');\r\n\r\n                        }\r\n\r\n                    })\r\n                    .catch(error =&gt; {\r\n\r\n                        \/\/ \u30a8\u30e9\u30fc\u51e6\u7406\r\n                        alert('\u5165\u529b\u5185\u5bb9\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002');\r\n                        console.log(error);\r\n\r\n                    });\r\n\r\n            }\r\n        },\r\n        mounted() {\r\n\r\n            this.getProducts();\r\n\r\n        }\r\n    });\r\n\r\n&lt;\/script&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p><strong>\u2460\u5546\u54c1\u30c7\u30fc\u30bf\u3092\u30ea\u30b9\u30c8\u8868\u793a<\/strong><\/p>\n<p><code>Ajax<\/code>\u3067<code>ProductController<\/code>\u306e<code>list()<\/code>\u304b\u3089\u53d6\u5f97\u3057\u305f\u5546\u54c1\u30c7\u30fc\u30bf\u3092<code>v-for<\/code>\u3067\u30eb\u30fc\u30d7\u3055\u305b\u306a\u304c\u3089\u30ea\u30b9\u30c8\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u2461\u30ec\u30d3\u30e5\u30fc\u3092\u30ea\u30b9\u30c8\u8868\u793a<\/strong><\/p>\n<p>\u5546\u54c1\u30c7\u30fc\u30bf\u3068\u30ec\u30d3\u30e5\u30fc\u306f\u300c\uff11\uff1a\u591a\u300d\u306e\u95a2\u4fc2\u306b\u3042\u308b\u306e\u3067\u3001\u3053\u3053\u3067\u3082<code>v-for<\/code>\u3067\u30ec\u30d3\u30e5\u306e\u30c7\u30fc\u30bf\u3092\u30eb\u30fc\u30d7\u3055\u305b\u3066\u30ea\u30b9\u30c8\u8868\u793a\u3057\u307e\u3059\u3002\uff08\u3064\u307e\u308a\u3001\u30eb\u30fc\u30d7\u306e\u4e2d\u306b\u30eb\u30fc\u30d7\u304c\u3042\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\uff09<\/p>\n<p><strong>\u2462\u30ec\u30d3\u30e5\u30fc\u6295\u7a3f\u306e\u30e2\u30fc\u30c0\u30eb<\/strong><\/p>\n<p>\u4eca\u56de\u306f\u300c<strong>\u30ec\u30d3\u30e5\u30fc\u3092\u6295\u7a3f<\/strong>\u300d\u3068\u3044\u3046\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u304c\u8868\u793a\u3055\u308c\u3001\u305d\u3053\u3067\u661f\u3068\u6587\u7ae0\u3092\u5165\u529b\u3059\u308b\u5f62\u306b\u3057\u307e\u3059\u306e\u3067\u3001<code>bootstrap<\/code>\u304c\u7528\u610f\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u30e2\u30fc\u30c0\u30eb\u6a5f\u80fd\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u2463\u661f\u3092\u8868\u793a\u3059\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/strong><\/p>\n<p>\u8907\u6570\u306e\u5834\u6240\u3067\uff11\u301c\uff15\u306e\u661f\u3092\u8868\u793a\u3092\u3059\u308b\u306e\u3067<code>Vue<\/code>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u3063\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u91cd\u8907\u3059\u308b\u540c\u3058\u8a18\u8ff0\u3092\u306a\u304f\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u6b21\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u3001<\/p>\n<pre><strong>&lt;v-star value=\"5\"&gt;&lt;\/v-star&gt;<\/strong><\/pre>\n<p>\u8868\u793a\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7367\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_12.png\" alt=\"\" width=\"110\" height=\"29\" \/><\/p>\n<p><strong>\u2464\u30ed\u30b0\u30a4\u30f3\u30fb\u30e6\u30fc\u30b6\u30fcID<\/strong><\/p>\n<p>\u3053\u3053\u306f\u3001\u6b21\u306e\u2465\u3067\u4f7f\u3046\u3053\u3068\u306b\u306a\u308b\u30e6\u30fc\u30b6\u30fcID\u3092\u53d6\u5f97\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u300cPHP\u300d\u306e\u66f8\u304d\u65b9\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u3053\u306e\u6d41\u308c\u3068\u3057\u3066\u306f\u3001<\/p>\n<ul>\n<li>auth()-&gt;user()-&gt;id\u304b\u3089\u5024\u304c\u53d6\u5f97\u51fa\u6765\u308b\u304b\u30c1\u30a7\u30c3\u30af<\/li>\n<li>\u53d6\u5f97\u3067\u304d\u308b\u306a\u3089\u305d\u306e\u5024\u3092\u3001<\/li>\n<li>\u3082\u3057\u53d6\u5f97\u3067\u304d\u306a\u3044\u306a\u3089-1\u3092\u8868\u793a\u3059\u308b<\/li>\n<\/ul>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u30da\u30fc\u30b8\u8868\u793a\u5f8c\u306e\u300c<strong>JavaScript<\/strong>\u300d\u3067\u306f\u305d\u306e\u5024\u3092<code>parseInt()<\/code>\u3067\u6587\u5b57\u5217\u2192\u6570\u5024\u306b\u5909\u63db\u3057\u3066<code>Vue<\/code>\u30c7\u30fc\u30bf\u3068\u3057\u3066\u4f7f\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u306f\u3053\u3093\u306a\u30ab\u30f3\u30b8\u3067\u3059\u3002<\/p>\n<pre><strong>userId: parseInt('2') \/\/ \ud83d\udc48\u30e6\u30fc\u30b6\u30fcID<\/strong><\/pre>\n<p><strong>\u2465\u3059\u3067\u306b\u6295\u7a3f\u6e08\u307f\u304b\u3069\u3046\u304b\u306e\u30c1\u30a7\u30c3\u30af<\/strong><\/p>\n<p>\u3053\u3053\u3067\u306f\u3001\u3059\u3067\u306b\u305d\u306e\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u304c\u30ec\u30d3\u30e5\u30fc\u3092\u6295\u7a3f\u6e08\u307f\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u3082\u3057\u6295\u7a3f\u6e08\u307f\u306a\u3089\u300c<strong>\u30ec\u30d3\u30e5\u30fc\u3092\u6295\u7a3f<\/strong>\u300d\u3068\u3044\u3046\u30ea\u30f3\u30af\u306f\u8868\u793a\u3057\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<br \/>\n\u307e\u305a\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u300c<strong>http:\/\/*****\/product<\/strong>\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7356\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_4.png\" alt=\"\" width=\"485\" height=\"463\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_4.png 485w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_4-300x286.png 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/p>\n<p>\u3067\u306f\u3001\u592a\u90ce\u3055\u3093\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u300c<strong>\u30c6\u30b9\u30c8\u5546\u54c1\u540d &#8211; 1<\/strong>\u300d\u306b\u30ec\u30d3\u30e5\u30fc\u3092\u6295\u7a3f\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u56de\u306f\u30b9\u30bf\u30fc\u3092\uff15\u306b\u3057\u3001\u30b3\u30e1\u30f3\u30c8\u3092\u5165\u529b\u3057\u3066\u9001\u4fe1\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7355\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_5.png\" alt=\"\" width=\"485\" height=\"473\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_5.png 485w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_5-300x293.png 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u30ec\u30d3\u30e5\u30fc\u304c\u767b\u9332\u3055\u308c\u3066\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7353\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_7.png\" alt=\"\" width=\"485\" height=\"419\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_7.png 485w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_7-300x259.png 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/p>\n<p>\u3067\u306f\u3001\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3066\u6b21\u306f\u300c\u6b21\u90ce\u3055\u3093\u300d\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u8868\u793a\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n\u592a\u90ce\u3055\u3093\u306e\u3068\u304d\u306f\u975e\u8868\u793a\u306b\u306a\u3063\u3066\u3044\u305f\u300c\u30ec\u30d3\u30e5\u30fc\u3092\u6295\u7a3f\u300d\u30ea\u30f3\u30af\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7352\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_8.png\" alt=\"\" width=\"485\" height=\"443\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_8.png 485w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_8-300x274.png 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/p>\n<p>\u3067\u306f\u3001\u3053\u306e\u307e\u307e\u6b21\u306e\u5165\u529b\u3067\u6295\u7a3f\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7351\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_9.png\" alt=\"\" width=\"485\" height=\"473\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_9.png 485w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_9-300x293.png 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u592a\u90ce\u3055\u3093\u3068\u6b21\u90ce\u3055\u3093\u306e\u30ec\u30d3\u30e5\u30fc\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7350\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_10.png\" alt=\"\" width=\"485\" height=\"512\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_10.png 485w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/laravel_review_10-284x300.png 284w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<h1>\u6559\u6750\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h1>\n<p>\u4eca\u56de\u5b9f\u969b\u306b\u958b\u767a\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/blog.capilano-fw.com?download=7361&amp;tmstv=1777537066\" rel=\"nofollow\" id=\"download-link-7361\" data-redirect=\"false\" >\n\tLaravel\u3067\u30ec\u30d3\u30e5\u30fc\u6a5f\u80fd\u3092\u3064\u304f\u308b<\/a>\n\n<p>\u203b\u305f\u3060\u3057\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306f\u3054\u81ea\u8eab\u3067\u5b9f\u884c\u3057\u3066\u3044\u305f\u3060\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f<code>Amazon<\/code>\u306b\u3042\u308b\u3088\u3046\u306a\u30ec\u30d3\u30e5\u30fc\u6a5f\u80fd\u3092<code>Laravel<\/code>\u3067\u3064\u304f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3082\u3057\u30cd\u30c3\u30c8\u30b7\u30e7\u30c3\u30d7\u306a\u3069\u3092\u69cb\u7bc9\u3057\u305f\u3044\u5834\u5408\u306f\u91cd\u8981\u306a\u6a5f\u80fd\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3057\u3001\u5546\u54c1\u3067\u306a\u304f\u3066\u3082\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u5f97\u308b\u306b\u306f\u7d50\u69cb\u4f7f\u3048\u308b\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u3084\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3467 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png\" alt=\"\" width=\"216\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png 216w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9-203x300.png 203w\" sizes=\"auto, (max-width: 216px) 100vw, 216px\" \/><\/p>\n<p style=\"text-align: center;\">\u300c\u50d5\u306f\u3001Amazon\u3068\u304b\u306e\u30dd\u30a4\u30f3\u30c8\u306f<br \/>\n\u8caf\u3081\u305a\u306b\u4f7f\u3044\u5207\u308b\u6d3e\u3067\u3059\ud83d\udc4d\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u300c\u5165\u8377\u3057\u305f\u3089\u30e1\u30fc\u30eb\u3067\u304a\u77e5\u3089\u305b\u300d\u6a5f\u80fd\u3092\u3064\u304f\u308b\u3068\u3044\u3046\u8a18\u4e8b\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u304c\u3001\u8a18\u4e8b\u306e\u5192\u982d\u3067\u3082\u66f8\u3044\u305f\u3068\u304a\u308a\u30cd\u30c3\u30c8\u30b5\u30fc\u30d5\u30a3\u30f3\u3057\u3066\u3044\u3066\u300c\u3042\u2757\u3053\u308c\u3064\u304f\u3063\u3066\u307f\u305f\u3044 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=7341\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel\u3067\u30ec\u30d3\u30e5\u30fc\u6a5f\u80fd\uff08\u661f\uff06\u30b3\u30e1\u30f3\u30c8\uff09\u3092\u3064\u304f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":7365,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,97],"tags":[],"class_list":["post-7341","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-97"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/7341","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=7341"}],"version-history":[{"count":10,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/7341\/revisions"}],"predecessor-version":[{"id":7368,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/7341\/revisions\/7368"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/7365"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}