{"id":49032,"date":"2023-12-17T18:03:30","date_gmt":"2023-12-17T09:03:30","guid":{"rendered":"https:\/\/kinqsta.com\/jp\/?p=49032&#038;preview=true&#038;preview_id=49032"},"modified":"2023-12-21T17:50:29","modified_gmt":"2023-12-21T08:50:29","slug":"laravel-crud","status":"publish","type":"post","link":"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/","title":{"rendered":"Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u3092\u884c\u3046\u65b9\u6cd5"},"content":{"rendered":"<p><a href=\"https:\/\/laravel.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Laravel<\/a>\u306f\u3001\u5909\u5316\u306e\u3081\u307e\u3050\u308b\u3057\u3044\u30a6\u30a7\u30d6\u958b\u767a\u696d\u754c\u306b\u304a\u3044\u3066\u3001\u30e2\u30c0\u30f3\u304b\u3064\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u306e\u306b\u4fbf\u5229\u306a\u4eba\u6c17\u306e<a href=\"https:\/\/kinqsta.com\/blog\/what-is-laravel\/\">PHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/a>\u3067\u3059\u3002<a href=\"https:\/\/laravel.com\/docs\/10.x\/eloquent\" target=\"_blank\" rel=\"noopener noreferrer\">Laravel Eloquent<\/a>\u306f<a href=\"https:\/\/en.wikipedia.org\/wiki\/Object%E2%80%93relational_mapping\" target=\"_blank\" rel=\"noopener noreferrer\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u95a2\u4fc2\u30de\u30c3\u30d4\u30f3\u30b0<\/a>\uff08ORM\uff09\u306e\u4e00\u7a2e\u3067\u3042\u308a\u3001\u3053\u308c\u3092\u4f7f\u3046\u3053\u3068\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u3001\u8aad\u307f\u53d6\u308a\u3001\u66f4\u65b0\u3001\u524a\u9664\uff08CRUD\uff09\u64cd\u4f5c\u3092\u52b9\u7387\u7684\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Laravel\u306eEloquent ORM\u3092\u4f7f\u7528\u3057\u3066Laravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3053\u306e\u64cd\u4f5c\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3068\u3001<a href=\"https:\/\/kinqsta.com\/jp\/mykinsta\/\">MyKinsta<\/a>\u3092\u4f7f\u7528\u3057\u3066Laravel CRUD\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>Laravel\u306eCRUD\u6a5f\u80fd<\/h2>\n<p>CRUD\u64cd\u4f5c\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u99c6\u52d5\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6b20\u304b\u305b\u306a\u3044\u6982\u5ff5\u3067\u3059\u3002\u30ec\u30b3\u30fc\u30c9\u306e\u4f5c\u6210\u3001\u65e2\u5b58\u306e\u30ec\u30b3\u30fc\u30c9\u306e\u8aad\u307f\u53d6\u308a\u3001\u66f4\u65b0\u3084\u524a\u9664\u306a\u3069\u3001\u57fa\u672c\u7684\u304b\u3064\u4e0d\u53ef\u6b20\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u64cd\u4f5c\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u64cd\u4f5c\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3084\u308a\u53d6\u308a\u3059\u308b<a href=\"https:\/\/docs.sevalla.com\/templates\/overviewphp-examples#laravel\">Laravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/a>\u306b\u3068\u3063\u3066\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>Eloquent\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306e\u76f4\u611f\u7684\u306a\u5bfe\u8a71\u3092\u53ef\u80fd\u306b\u3059\u308b\u3082\u306e\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7ba1\u7406\u306e\u8907\u96d1\u3055\u3092\u8efd\u6e1b\u3057\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u69cb\u7bc9\u3078\u306e\u5c02\u5ff5\u3092\u5f8c\u62bc\u3057\u3057\u307e\u3059\u3002\u7d44\u307f\u8fbc\u307f\u306e\u30e1\u30bd\u30c3\u30c9\u3068\u30af\u30e9\u30b9\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30ec\u30b3\u30fc\u30c9\u306b\u5bfe\u3057\u3066\u7c21\u5358\u306bCRUD\u64cd\u4f5c\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u524d\u63d0\u6761\u4ef6<\/h3>\n<p>\u3053\u306e\u8aac\u660e\u3092\u8aad\u307f\u9032\u3081\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3082\u306e\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/www.apachefriends.org\/download.html\" target=\"_blank\" rel=\"noopener noreferrer\">XAMPP<\/a><\/li>\n<li><a href=\"https:\/\/getcomposer.org\/download\/\" target=\"_blank\" rel=\"noopener noreferrer\">Composer<\/a><\/li>\n<li><a href=\"https:\/\/my.kinqsta.com\/login\/?lang=ja\">MyKinsta\u30a2\u30ab\u30a6\u30f3\u30c8<\/a><\/li>\n<li>\u30b3\u30fc\u30c9\u3092\u30d7\u30c3\u30b7\u30e5\u3059\u308b<a href=\"https:\/\/github.com\" target=\"_blank\" rel=\"noopener noreferrer\">GitHub<\/a>\u3001<a href=\"https:\/\/gitlab.com\" target=\"_blank\" rel=\"noopener noreferrer\">GitLab<\/a>\u3001\u307e\u305f\u306f<a href=\"https:\/\/bitbucket.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Bitbucket<\/a>\u30a2\u30ab\u30a6\u30f3\u30c8<\/li>\n<li><a href=\"https:\/\/getbootstrap.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Bootstrap\u30d0\u30fc\u30b8\u30e7\u30f35<\/a><\/li>\n<\/ul>\n<h3>\u30b9\u30c6\u30c3\u30d7<\/h3>\n<ol start=\"1\">\n<li>Laravel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>\u30e2\u30c7\u30eb\u3092\u8a2d\u5b9a\u3059\u308b<\/li>\n<li>\u30eb\u30fc\u30c8\u3092\u8ffd\u52a0\u3059\u308b<\/li>\n<li>Blade\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b<\/li>\n<li>CRUD\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u3068\u30c6\u30b9\u30c8<\/li>\n<\/ol>\n<p>\u4eca\u56de\u306e\u8aac\u660e\u3067\u4f7f\u3063\u3066\u3044\u308b<a href=\"https:\/\/github.com\/VirtuaCreative\/kinsta-laravel-crud\" target=\"_blank\" rel=\"noopener noreferrer\">\u30b3\u30fc\u30c9\u306f\u3053\u3061\u3089<\/a>\u3067\u516c\u958b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Laravel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>Laravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u307e\u305a\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ol start=\"1\">\n<li>Laravel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-sh\">composer global require laravel\/installer<\/code><\/pre>\n<ol start=\"2\">\n<li>Laravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-sh\">laravel new crudposts<\/code><\/pre>\n<h2>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210<\/h2>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<ol start=\"1\">\n<li>XAMPP\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u3067Apache\u3068MySQL\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u3001\u30d6\u30e9\u30a6\u30b6\u3067<code>http:\/\/localhost\/phpmyadmin<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<ol start=\"2\">\n<li>\u5de6\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u300c<strong>\u65b0\u898f\u4f5c\u6210<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/li>\n<\/ol>\n<figure style=\"width: 1134px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2023\/07\/phpmyadmin-form-create-db.png\" alt=\"\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u306b\u4f7f\u3048\u308b\u30d5\u30a9\u30fc\u30e0\" width=\"1134\" height=\"315\"><figcaption class=\"wp-caption-text\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u30d5\u30a9\u30fc\u30e0<\/figcaption><\/figure>\n<ol start=\"3\">\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3092\u8ffd\u52a0\u3057\u3001\u300c<strong>\u4f5c\u6210\u300d<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<ol start=\"4\">\n<li>Laravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30eb\u30fc\u30c8\u306b\u3042\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e<strong>.env<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u4f7f\u7528\u3059\u308b\u3059\u3079\u3066\u306e\u74b0\u5883\u5909\u6570\u304c\u542b\u307e\u308c\u307e\u3059\u3002<code>DB_<\/code>\u3068\u3044\u3046\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u304c\u4ed8\u3044\u305f\u5909\u6570\u3092\u63a2\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u5165\u308c\u3066\u7de8\u96c6\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-env\">DB_CONNECTION=\nDB_HOST=\nDB_PORT=\nDB_DATABASE=\nDB_USERNAME=\nDB_PASSWORD=<\/code><\/pre>\n<h2>\u30c6\u30fc\u30d6\u30eb\u306e\u4f5c\u6210<\/h2>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30fc\u30bf\u306f\u30c6\u30fc\u30d6\u30eb\u306b\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5fc5\u8981\u306a\u30c6\u30fc\u30d6\u30eb\u306f1\u3064\u3060\u3051\u3067\u3001<a href=\"https:\/\/laravel.com\/docs\/10.x\/migrations\" target=\"_blank\" rel=\"noopener noreferrer\">Laravel\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3<\/a>\u3092\u4f7f\u3063\u3066\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<ol start=\"1\">\n<li>Laravel\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3001Artisan\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30fc\u30d6\u30eb\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-sh\">php artisan make:migration create_posts_table<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066&#8230;<\/p>\n<p><strong>yyyy_mm_dd_hhhmmss_create_posts_table.php<\/strong>\u304c\u00a0<strong>database\/migrations<\/strong>\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<ol start=\"2\">\n<li><strong>yyyy_mm_dd_hhhmmss_create_posts_table.php<\/strong>\u3092\u958b\u304d\u3001up\u95a2\u6570\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u5185\u306b\u5fc5\u8981\u306a\u30ab\u30e9\u30e0\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-php\">public function up()\n{\n  Schema::create('posts', function (Blueprint $table) {\n    $table-&gt;id();\n    $table-&gt;string('title');\n    $table-&gt;text('body');\n    $table-&gt;timestamps();\n  });\n}<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3067posts\u30c6\u30fc\u30d6\u30eb\u306e\u5185\u5bb9\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<code>id<\/code>\u3001<code>title<\/code>\u3001<code>body<\/code>\u3001<code>timestamps<\/code>\u306e4\u3064\u306e\u30ab\u30e9\u30e0\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol start=\"3\">\n<li><strong>database\/migrations<\/strong>\u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308bmigrations\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-sh\">php artisan migrate<\/code><\/pre>\n<p>\u51fa\u529b\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<figure style=\"width: 614px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2023\/07\/laravel-crud-run-migrations.png\" alt=\"\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u5b9f\u884c\u306e\u7d50\u679c\" width=\"614\" height=\"403\"><figcaption class=\"wp-caption-text\">\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b<\/figcaption><\/figure>\n<ol start=\"4\">\n<li>\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u30c6\u30fc\u30d6\u30eb\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/li>\n<\/ol>\n<figure style=\"width: 1053px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2023\/07\/laravel-crud-posts-table.png\" alt=\"\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u305f\u7d50\u679c\" width=\"1053\" height=\"209\"><figcaption class=\"wp-caption-text\">\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210<\/figcaption><\/figure>\n<h2>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306b\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6295\u7a3f\uff08posts\uff09\u3092CRUD\u64cd\u4f5c\u3059\u308b\u95a2\u6570\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<p>Artisan\u3092\u4f7f\u7528\u3057\u3066Laravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-sh\">php artisan make:controller PostController --api<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001<strong>app\/Http\/Controllers<\/strong>\u306b<strong>PostController.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u3001\u30dc\u30a4\u30e9\u30fc\u30d7\u30ec\u30fc\u30c8\u30b3\u30fc\u30c9\u3068\u7a7a\u306e\u95a2\u6570\u5ba3\u8a00<code>index<\/code>\u3001<code>store<\/code>\u3001<code>show<\/code>\u3001<code>update<\/code>\u3001<code>destroy<\/code>\u304c\u7528\u610f\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u6570\u306e\u4f5c\u6210<\/h2>\n<p>\u6b21\u306b\u3001\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5316\u3001\u66f4\u65b0\u3001\u7834\u68c4\u3001\u4f5c\u6210\u3001\u8868\u793a\u3001\u7de8\u96c6\u3092\u884c\u3046\u95a2\u6570\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u95a2\u6570\u3092\u4ee5\u4e0b\u306b\u3042\u308b\u3088\u3046\u306b<strong><a href=\"https:\/\/github.com\/VirtuaCreative\/kinsta-laravel-crud\/blob\/main\/app\/Http\/Controllers\/PostController.php\" target=\"_blank\" rel=\"noopener noreferrer\">app\/Http\/Controller\/PostController.php<\/a><\/strong>\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<h3><code>store<\/code>\u95a2\u6570<\/h3>\n<p><code>store<\/code>\u95a2\u6570\u306f\u3001\u6295\u7a3f\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p><code>store<\/code>\u95a2\u6570\u307e\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3001\u7a7a\u767d\u306e\u4e2d\u62ec\u5f27\u5185\u306b\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">$request-&gt;validate([\n  'title' =&gt; 'required|max:255',\n  'body' =&gt; 'required',\n]);\nPost::create($request-&gt;all());\nreturn redirect()-&gt;route('posts.index')\n  -&gt;with('success','Post created successfully.');<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\u3001\u6295\u7a3f\u306e\u30bf\u30a4\u30c8\u30eb\u3068\u672c\u6587\u3092\u542b\u3080\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d7\u3051\u53d6\u308a\u3001\u30c7\u30fc\u30bf\u3092\u691c\u8a3c\u3057\u3001\u30c7\u30fc\u30bf\u304c\u6709\u52b9\u3067\u3042\u308c\u3070\u65b0\u3057\u3044\u6295\u7a3f\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u8ffd\u52a0\u3057\u3001\u5b8c\u4e86\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u3068\u3082\u306b\u30e6\u30fc\u30b6\u30fc\u3092\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002<\/p>\n<h3><code>index<\/code>\u95a2\u6570<\/h3>\n<p><code>index<\/code>\u95a2\u6570\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u3059\u3079\u3066\u306e\u6295\u7a3f\u3092\u53d6\u5f97\u3057\u3001\u30c7\u30fc\u30bf\u3092<strong><a href=\"https:\/\/github.com\/VirtuaCreative\/kinsta-laravel-crud\/blob\/main\/resources\/views\/posts\/index.blade.php\" target=\"_blank\" rel=\"noopener noreferrer\">posts.index<\/a><\/strong>\u30da\u30fc\u30b8\u306b\u9001\u4fe1\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<h3><code>update<\/code>\u95a2\u6570<\/h3>\n<p><code>update<\/code>\u95a2\u6570\u306b\u306f\u3001\u66f4\u65b0\u3059\u308b\u6295\u7a3f\u306e<code>id<\/code>\u3001\u65b0\u3057\u3044\u6295\u7a3f\u306e<code>title<\/code>\u3001\u305d\u3057\u3066<code>body<\/code>\u304c\u542b\u307e\u308c\u307e\u3059\u3002 \u30c7\u30fc\u30bf\u3092\u691c\u8a3c\u3057\u305f\u5f8c\u3001\u540c\u3058<code>id<\/code>\u3092\u6301\u3064\u6295\u7a3f\u3092\u898b\u3064\u3051\u307e\u3059\u3002\u898b\u3064\u304b\u3063\u305f\u5834\u5408\u3001<code>update<\/code>\u95a2\u6570\u306b\u3088\u308a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u6295\u7a3f\u3092\u65b0\u3057\u3044<code>title<\/code>\u3068<code>body<\/code>\u306b\u5909\u66f4\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u5b8c\u4e86\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u3068\u3082\u306b\u30e6\u30fc\u30b6\u30fc\u3092\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002<\/p>\n<h3><code>destroy<\/code>\u95a2\u6570<\/h3>\n<p><code>destroy<\/code>\u95a2\u6570\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f<code>id<\/code>\u3092\u6301\u3064\u6295\u7a3f\u3092\u898b\u3064\u3051\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u524a\u9664\u3057\u3001\u5b8c\u4e86\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u3068\u3082\u306b\u30e6\u30fc\u30b6\u30fc\u3092\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6295\u7a3f\u306bCRUD\u64cd\u4f5c\u3092\u5b9f\u884c\u3059\u308b\u95a2\u6570\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<strong>resources\/views\/posts\/<\/strong>\u306b\u30da\u30fc\u30b8\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u306b\u306f\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u5185\u90e8\u3067\u3055\u3089\u306b\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3><code>create<\/code>\u95a2\u6570<\/h3>\n<p><code>create<\/code>\u95a2\u6570\u306f<strong><a href=\"https:\/\/github.com\/VirtuaCreative\/kinsta-laravel-crud\/blob\/main\/resources\/views\/posts\/create.blade.php\" target=\"_blank\" rel=\"noopener noreferrer\">resources\/views\/posts\/create.blade.php<\/a><\/strong>\u30da\u30fc\u30b8\uff08\u6295\u7a3f\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u8ffd\u52a0\u3059\u308b\u30d5\u30a9\u30fc\u30e0\u304c\u542b\u307e\u308c\u308b\uff09\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<h3><code>show<\/code>\u95a2\u6570<\/h3>\n<p><code>show<\/code>\u95a2\u6570\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u6307\u5b9a\u3055\u308c\u305f<code>id<\/code>\u3092\u6301\u3064\u6295\u7a3f\u3092\u898b\u3064\u3051\u3001\u6295\u7a3f\u3092\u4f34\u3046\u304b\u305f\u3061\u3067\u00a0<strong><a href=\"https:\/\/github.com\/VirtuaCreative\/kinsta-laravel-crud\/blob\/main\/resources\/views\/posts\/show.blade.php\" target=\"_blank\" rel=\"noopener noreferrer\">resources\/views\/posts\/show.blade.php<\/a><\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u307e\u3059<strong>\u3002<\/strong><\/p>\n<h3><code>edit<\/code>\u95a2\u6570<\/h3>\n<p><code>edit<\/code>\u95a2\u6570\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3042\u308b\u6307\u5b9a\u3055\u308c\u305f<code>id<\/code>\u3092\u6301\u3064\u6295\u7a3f\u3092\u898b\u3064\u3051\u3001\u6295\u7a3f\u306e\u8a73\u7d30\u3068\u5171\u306b<strong><a href=\"https:\/\/github.com\/VirtuaCreative\/kinsta-laravel-crud\/blob\/main\/resources\/views\/posts\/edit.blade.php\" target=\"_blank\" rel=\"noopener noreferrer\">resources\/views\/posts\/edit.blade.php<\/a><\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30e2\u30c7\u30eb\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h2>\n<p><code>Post<\/code>\u30e2\u30c7\u30eb\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e<strong>posts<\/strong>\u30c6\u30fc\u30d6\u30eb\u3068\u3084\u308a\u3068\u308a\u3057\u307e\u3059\u3002<\/p>\n<ol start=\"1\">\n<li>Artisan\u3067\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-sh\">php artisan make:model Post<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f<strong>App\/Models<\/strong>\u30d5\u30a9\u30eb\u30c0\u5185\u306b<strong>Post.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<ol start=\"2\">\n<li><code>fillable<\/code>\u914d\u5217\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<code>Post<\/code>\u30af\u30e9\u30b9\u306e\u4e2d\u3001<code>use HasFactory;<\/code>\u306e\u4e0b\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-php\">protected $fillable = [\n  'title',\n  'body',\n];<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\u3001<code>fillable<\/code>\u914d\u5217\u3092\u4f5c\u6210\u3057\u3001Laravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u9805\u76ee\u3092\u8ffd\u52a0\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<ol start=\"3\">\n<li><code>Post<\/code>\u30e2\u30c7\u30eb\u3092<strong>PostController.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<strong>PostController.php\u3092<\/strong>\u958b\u304d\u3001<code>use Illuminate\\Http\\Request;<\/code>\u306e\u4e0b\u306b\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-php\">use Illuminate\\Http\\Request;\nuse App\\Models\\Post;<\/code><\/pre>\n<p><strong>PostController.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">&lt;?php\nnamespace App\\Http\\Controllers;\nuse Illuminate\\Http\\Request;\nuse App\\Models\\Post;\nclass PostController extends Controller\n{\n  \/**\n   * Display a listing of the resource.\n   *\n   * @return \\Illuminate\\Http\\Response\n   *\/\n  public function index()\n  {\n    $posts = Post::all();\n    return view('posts.index', compact('posts'));\n  }\n  \/**\n   * Store a newly created resource in storage.\n   *\n   * @param  \\Illuminate\\Http\\Request  $request\n   * @return \\Illuminate\\Http\\Response\n   *\/\n  public function store(Request $request)\n  {\n    $request-&gt;validate([\n      'title' =&gt; 'required|max:255',\n      'body' =&gt; 'required',\n    ]);\n    Post::create($request-&gt;all());\n    return redirect()-&gt;route('posts.index')\n      -&gt;with('success', 'Post created successfully.');\n  }\n  \/**\n   * Update the specified resource in storage.\n   *\n   * @param  \\Illuminate\\Http\\Request  $request\n   * @param  int  $id\n   * @return \\Illuminate\\Http\\Response\n   *\/\n  public function update(Request $request, $id)\n  {\n    $request-&gt;validate([\n      'title' =&gt; 'required|max:255',\n      'body' =&gt; 'required',\n    ]);\n    $post = Post::find($id);\n    $post-&gt;update($request-&gt;all());\n    return redirect()-&gt;route('posts.index')\n      -&gt;with('success', 'Post updated successfully.');\n  }\n  \/**\n   * Remove the specified resource from storage.\n   *\n   * @param  int  $id\n   * @return \\Illuminate\\Http\\Response\n   *\/\n  public function destroy($id)\n  {\n    $post = Post::find($id);\n    $post-&gt;delete();\n    return redirect()-&gt;route('posts.index')\n      -&gt;with('success', 'Post deleted successfully');\n  }\n  \/\/ routes functions\n  \/**\n   * Show the form for creating a new post.\n   *\n   * @return \\Illuminate\\Http\\Response\n   *\/\n  public function create()\n  {\n    return view('posts.create');\n  }\n  \/**\n   * Display the specified resource.\n   *\n   * @param  int  $id\n   * @return \\Illuminate\\Http\\Response\n   *\/\n  public function show($id)\n  {\n    $post = Post::find($id);\n    return view('posts.show', compact('post'));\n  }\n  \/**\n   * Show the form for editing the specified post.\n   *\n   * @param  int  $id\n   * @return \\Illuminate\\Http\\Response\n   *\/\n  public function edit($id)\n  {\n    $post = Post::find($id);\n    return view('posts.edit', compact('post'));\n  }\n}<\/code><\/pre>\n<h2>\u30eb\u30fc\u30c8\u306e\u8ffd\u52a0<\/h2>\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u95a2\u6570\u3068<code>Post<\/code>\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001 \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u95a2\u6570\u7528\u306e\u30eb\u30fc\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059<\/p>\n<ol start=\"1\">\n<li><strong>routes\/web.php<\/strong>\u3092\u958b\u304d\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u751f\u6210\u3057\u305fboilerplate\u30eb\u30fc\u30c8\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306b\u7f6e\u304d\u63db\u3048\u3066\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u95a2\u6570\u3092\u305d\u308c\u305e\u308c\u306e\u30eb\u30fc\u30c8\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-php\">\/\/ returns the home page with all posts\nRoute::get('\/', PostController::class .'@index')-&gt;name('posts.index');\n\/\/ returns the form for adding a post\nRoute::get('\/posts\/create', PostController::class . '@create')-&gt;name('posts.create');\n\/\/ adds a post to the database\nRoute::post('\/posts', PostController::class .'@store')-&gt;name('posts.store');\n\/\/ returns a page that shows a full post\nRoute::get('\/posts\/{post}', PostController::class .'@show')-&gt;name('posts.show');\n\/\/ returns the form for editing a post\nRoute::get('\/posts\/{post}\/edit', PostController::class .'@edit')-&gt;name('posts.edit');\n\/\/ updates a post\nRoute::put('\/posts\/{post}', PostController::class .'@update')-&gt;name('posts.update');\n\/\/ deletes a post\nRoute::delete('\/posts\/{post}', PostController::class .'@destroy')-&gt;name('posts.destroy');<\/code><\/pre>\n<ol start=\"2\">\n<li>\u30eb\u30fc\u30c8\u3092\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001<strong>app\/Http\/Controllers\/PostController.php<\/strong>\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092<code>use Illuminate\\Support\\Facades\\Route;<\/code>\u306e\u4e0b\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-php\">use Illuminate\\Support\\Facades\\Route;\nuse App\\Http\\Controllers\\PostController;<\/code><\/pre>\n<p><strong>routes\/web.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">&lt;?php\nuse Illuminate\\Support\\Facades\\Route;\nuse App\\Http\\Controllers\\PostController;\n\/\/ returns the home page with all posts\nRoute::get('\/', PostController::class .'@index')-&gt;name('posts.index');\n\/\/ returns the form for adding a post\nRoute::get('\/posts\/create', PostController::class . '@create')-&gt;name('posts.create');\n\/\/ adds a post to the database\nRoute::post('\/posts', PostController::class .'@store')-&gt;name('posts.store');\n\/\/ returns a page that shows a full post\nRoute::get('\/posts\/{post}', PostController::class .'@show')-&gt;name('posts.show');\n\/\/ returns the form for editing a post\nRoute::get('\/posts\/{post}\/edit', PostController::class .'@edit')-&gt;name('posts.edit');\n\/\/ updates a post\nRoute::put('\/posts\/{post}', PostController::class .'@update')-&gt;name('posts.update');\n\/\/ deletes a post\nRoute::delete('\/posts\/{post}', PostController::class .'@destroy')-&gt;name('posts.destroy');<\/code><\/pre>\n<h2>Blade\u30d5\u30a1\u30a4\u30eb\u306e\u751f\u6210<\/h2>\n<p>\u30eb\u30fc\u30c8\u304c\u3067\u304d\u305f\u306e\u3067\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/laravel-blade\/\">Laravel Blade<\/a>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002Artisan\u3092\u4f7f\u7528\u3057\u3066Blade\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b\u524d\u306b\u3001<code>make:view<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u4f7f\u3063\u3066<strong>blade.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ol start=\"1\">\n<li>CLI\u3067\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3001<strong>app\/Console\/Commands<\/strong>\u30d5\u30a9\u30eb\u30c0\u5185\u306b<strong>MakeViewCommand<\/strong>\u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-sh\">php artisan make:command MakeViewCommand<\/code><\/pre>\n<ol start=\"2\">\n<li><strong>MakeViewCommand<\/strong>\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30fc\u30c9\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7f6e\u304d\u63db\u3048\u3066\u3001CLI\u304b\u3089<strong>.blade.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-php\">&lt;?php\nnamespace App\\Console\\Commands;\nuse Illuminate\\Console\\Command;\nuse File;\nclass MakeViewCommand extends Command\n{\n  \/**\n   * The name and signature of the console command.\n   *\n   * @var string\n   *\/\n  protected $signature = 'make:view {view}';\n  \/**\n   * The console command description.\n   *\n   * @var string\n   *\/\n  protected $description = 'Create a new blade template.';\n  \/**\n   * Execute the console command.\n   *\n   * @return mixed\n   *\/\n  public function handle()\n  {\n    $view = $this-&gt;argument('view');\n    $path = $this-&gt;viewPath($view);\n    $this-&gt;createDir($path);\n    if (File::exists($path))\n    {\n        $this-&gt;error(\"File {$path} already exists!\");\n        return;\n    }\n    File::put($path, $path);\n    $this-&gt;info(\"File {$path} created.\");\n  }\n  \/**\n   * Get the view full path.\n   *\n   * @param string $view\n   *\n   * @return string\n   *\/\n  public function viewPath($view)\n  {\n    $view = str_replace('.', '\/', $view) . '.blade.php';\n    $path = \"resources\/views\/{$view}\";\n    return $path;\n  }\n  \/**\n   * Create a view directory if it does not exist.\n   *\n   * @param $path\n   *\/\n  public function createDir($path)\n  {\n    $dir = dirname($path);\n    if (!file_exists($dir))\n    {\n        mkdir($dir, 0777, true);\n    }\n  }\n}<\/code><\/pre>\n<h3>\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306e\u4f5c\u6210<\/h3>\n<p>\u6b21\u306b\u3001\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306f<strong>index.blade.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u3053\u3053\u306b\u3059\u3079\u3066\u306e\u6295\u7a3f\u3092\u4e00\u89a7\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<ol start=\"1\">\n<li>\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-sh\">php artisan make:view posts.index<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001<strong>\/resources\/views<\/strong>\u30d5\u30a9\u30eb\u30c0\u5185\u306b<strong>posts<\/strong>\u30d5\u30a9\u30eb\u30c0\u304c\u3001\u305d\u3057\u3066\u305d\u306e\u4e0b\u306b<strong>index.blade.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u7d50\u679c\u306e\u30d1\u30b9\u306f<strong>\/resources\/views\/posts\/index.blade.php<\/strong>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ol start=\"2\">\n<li><strong>index.blade.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-php\">&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n  &lt;meta charset=\"UTF-8\"&gt;\n  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\n  &lt;meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\"&gt;\n  &lt;link href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.3.0-alpha1\/dist\/css\/bootstrap.min.css\" rel=\"stylesheet\"\nintegrity=\"sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3\/Jr59b6EGGoI1aFkw7cmDA6j6gD\" crossorigin=\"anonymous\"&gt;\n  &lt;title&gt;Posts&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n  &lt;nav class=\"navbar navbar-expand-lg navbar-light bg-warning\"&gt;\n    &lt;div class=\"container-fluid\"&gt;\n      &lt;a class=\"navbar-brand h1\" href={{ route('posts.index') }}&gt;CRUDPosts&lt;\/a&gt;\n      &lt;div class=\"justify-end \"&gt;\n        &lt;div class=\"col \"&gt;\n          &lt;a class=\"btn btn-sm btn-success\" href={{ route('posts.create') }}&gt;Add Post&lt;\/a&gt;\n        &lt;\/div&gt;\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n  &lt;\/nav&gt;\n  &lt;div class=\"container mt-5\"&gt;\n    &lt;div class=\"row\"&gt;\n      @foreach ($posts as $post)\n        &lt;div class=\"col-sm\"&gt;\n          &lt;div class=\"card\"&gt;\n            &lt;div class=\"card-header\"&gt;\n              &lt;h5 class=\"card-title\"&gt;{{ $post-&gt;title }}&lt;\/h5&gt;\n            &lt;\/div&gt;\n            &lt;div class=\"card-body\"&gt;\n              &lt;p class=\"card-text\"&gt;{{ $post-&gt;body }}&lt;\/p&gt;\n            &lt;\/div&gt;\n            &lt;div class=\"card-footer\"&gt;\n              &lt;div class=\"row\"&gt;\n                &lt;div class=\"col-sm\"&gt;\n                  &lt;a href=\"{{ route('posts.edit', $post-&gt;id) }}\"\n            class=\"btn btn-primary btn-sm\"&gt;Edit&lt;\/a&gt;\n                &lt;\/div&gt;\n                &lt;div class=\"col-sm\"&gt;\n                    &lt;form action=\"{{ route('posts.destroy', $post-&gt;id) }}\" method=\"post\"&gt;\n                      @csrf\n                      @method('DELETE')\n                      &lt;button type=\"submit\" class=\"btn btn-danger btn-sm\"&gt;Delete&lt;\/button&gt;\n                    &lt;\/form&gt;\n                &lt;\/div&gt;\n              &lt;\/div&gt;\n            &lt;\/div&gt;\n          &lt;\/div&gt;\n        &lt;\/div&gt;\n      @endforeach\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u306b<a href=\"https:\/\/getbootstrap.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Bootstrap<\/a>\u3092\u4f7f\u7528\u3057\u305f\u30b7\u30f3\u30d7\u30eb\u306aHTML\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<code>@foreach<\/code> Blade\u30d8\u30eb\u30d1\u30fc\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d0\u30fc\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u3059\u3079\u3066\u306e\u6295\u7a3f\u306e\u8a73\u7d30\u30682\u3064\u306e\u64cd\u4f5c\u30dc\u30bf\u30f3\uff08\u7de8\u96c6\u3068\u524a\u9664\uff09\u3092\u8868\u793a\u3059\u308b\u30b0\u30ea\u30c3\u30c9\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u300cEdit\uff08\u7de8\u96c6\uff09<\/strong>\u300d\u30dc\u30bf\u30f3\u306f\u300c<strong>Edit post\uff08\u6295\u7a3f\u306e\u7de8\u96c6\uff09<\/strong>\u300d\u30da\u30fc\u30b8\u306b\u30ea\u30f3\u30af\u3055\u308c\u3001\u305d\u3053\u3067\u6295\u7a3f\u3092\u7de8\u96c6\u3067\u304d\u307e\u3059\u3002\u300c<strong>Delete\uff08\u524a\u9664\uff09<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001<code>DELETE<\/code>\u30e1\u30bd\u30c3\u30c9\u3067<code>{{ route('posts.destroy', $post-&gt;id) }}<\/code>\u3092\u4f7f\u7528\u3057\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u6295\u7a3f\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>\u6ce8<\/strong>\uff09\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d0\u30fc\u306e\u30b3\u30fc\u30c9\u306f\u5148\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u540c\u3058\u3082\u306e\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol start=\"3\">\n<li><strong>create.blade.php<\/strong>\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<strong>create<\/strong>\u3068\u3044\u3046Blade\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u6295\u7a3f\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u8ffd\u52a0\u3059\u308b\u3082\u306e\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-sh\">php artisan make:view posts.create<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001<strong> \/resources\/views\/posts<\/strong>\u30d5\u30a9\u30eb\u30c0\u5185\u306b<strong>create.blade.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<ol start=\"4\">\n<li>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092<strong>create.blade.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-php\">\/\/ same as the previous file. Add the following after the nav tag and before the closing body tag.\n&lt;div class=\"container h-100 mt-5\"&gt;\n  &lt;div class=\"row h-100 justify-content-center align-items-center\"&gt;\n    &lt;div class=\"col-10 col-md-8 col-lg-6\"&gt;\n      &lt;h3&gt;Add a Post&lt;\/h3&gt;\n      &lt;form action=\"{{ route('posts.store') }}\" method=\"post\"&gt;\n        @csrf\n        &lt;div class=\"form-group\"&gt;\n          &lt;label for=\"title\"&gt;Title&lt;\/label&gt;\n          &lt;input type=\"text\" class=\"form-control\" id=\"title\" name=\"title\" required&gt;\n        &lt;\/div&gt;\n        &lt;div class=\"form-group\"&gt;\n          &lt;label for=\"body\"&gt;Body&lt;\/label&gt;\n          &lt;textarea class=\"form-control\" id=\"body\" name=\"body\" rows=\"3\" required&gt;&lt;\/textarea&gt;\n        &lt;\/div&gt;\n        &lt;br&gt;\n        &lt;button type=\"submit\" class=\"btn btn-primary\"&gt;Create Post&lt;\/button&gt;\n      &lt;\/form&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306b\u3088\u308a\u3001<code>title<\/code>\u3068<code>body<\/code>\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u6301\u3064\u30d5\u30a9\u30fc\u30e0\u3068\u3001<code>POST<\/code>\u30e1\u30bd\u30c3\u30c9\u306e<code>{{ route('posts.store') }}<\/code>\u3092\u901a\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u6295\u7a3f\u3092\u8ffd\u52a0\u3059\u308b<code>submit<\/code>\u30dc\u30bf\u30f3\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<ol start=\"5\">\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6295\u7a3f\u3092\u7de8\u96c6\u3059\u308b\u300c<strong>Edit post\uff08\u6295\u7a3f\u306e\u7de8\u96c6\uff09<\/strong>\u300d\u30da\u30fc\u30b8\u3092\u4f5c\u308a\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u306b\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-sh\">php artisan make:view posts.edit<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001<strong>\/resources\/views\/posts<\/strong>\u30d5\u30a9\u30eb\u30c0\u5185\u306b<strong>edit.blade.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<ol start=\"6\">\n<li><strong>edit.blade.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-php\">&lt;div class=\"container h-100 mt-5\"&gt;\n  &lt;div class=\"row h-100 justify-content-center align-items-center\"&gt;\n    &lt;div class=\"col-10 col-md-8 col-lg-6\"&gt;\n      &lt;h3&gt;Update Post&lt;\/h3&gt;\n      &lt;form action=\"{{ route('posts.update', $post-&gt;id) }}\" method=\"post\"&gt;\n        @csrf\n        @method('PUT')\n        &lt;div class=\"form-group\"&gt;\n          &lt;label for=\"title\"&gt;Title&lt;\/label&gt;\n          &lt;input type=\"text\" class=\"form-control\" id=\"title\" name=\"title\"\n            value=\"{{ $post-&gt;title }}\" required&gt;\n        &lt;\/div&gt;\n        &lt;div class=\"form-group\"&gt;\n          &lt;label for=\"body\"&gt;Body&lt;\/label&gt;\n          &lt;textarea class=\"form-control\" id=\"body\" name=\"body\" rows=\"3\" required&gt;{{ $post-&gt;body }}&lt;\/textarea&gt;\n        &lt;\/div&gt;\n        &lt;button type=\"submit\" class=\"btn mt-3 btn-primary\"&gt;Update Post&lt;\/button&gt;\n      &lt;\/form&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306b\u3088\u308a\u3001<code>title<\/code>\u3068<code>body<\/code>\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u6301\u3064\u30d5\u30a9\u30fc\u30e0\u3068\u3001<code>PUT<\/code>\u30e1\u30bd\u30c3\u30c9\u306e<code>{{ route('posts.update') }}<\/code>\u3092\u901a\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f<code>id<\/code>\u3092\u6301\u3064\u6295\u7a3f\u3092\u7de8\u96c6\u3059\u308b\u6295\u7a3f\u30dc\u30bf\u30f3\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<ol start=\"7\">\n<li>\u6b21\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-sh\">php artisan serve<\/code><\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067<code>http:\/\/127.0.0.1:8000<\/code>\u3092\u958b\u304d\u30d6\u30ed\u30b0\u3092\u8868\u793a\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u8a18\u4e8b\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001\u300c<strong>Add Post<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<h2>CRUD\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u3068\u30c6\u30b9\u30c8<\/h2>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u6e96\u5099\u3092\u3057\u307e\u3059\u3002<\/p>\n<ol start=\"1\">\n<li>public\u30d5\u30a9\u30eb\u30c0\u3092\u5ba3\u8a00\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30d7\u30ed\u30a4\u304c\u30b9\u30e0\u30fc\u30ba\u304b\u3064\u7c21\u5358\u306b\u306a\u308a\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30a9\u30eb\u30c0\u306e\u30eb\u30fc\u30c8\u306b<strong>.htaccess<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-apacheconf\">&lt;IfModule mod_rewrite.c &gt;\n  RewriteEngine On\n  RewriteRule ^(.*)$ public\/$1 [L]\n&lt;\/IfModule &gt;<\/code><\/pre>\n<ol start=\"2\">\n<li><strong>routes\/web.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u5185\u306eroutes\u306e\u4e0a\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u3001\u30a2\u30d7\u30ea\u3067\u306e<code>HTTPS<\/code>\u63a5\u7d9a\u3092\u5f37\u5236\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-php\">use Illuminate\\Support\\Facades\\URL;\nURL::forceScheme('https');<\/code><\/pre>\n<ol start=\"3\">\n<li>\u30b3\u30fc\u30c9\u3092Git\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30d7\u30c3\u30b7\u30e5\u3057\u307e\u3059\u3002Kinsta\u306fGitHub\u3001GitLab\u3001Bitbucket\u304b\u3089\u306e\u30c7\u30d7\u30ed\u30a4\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ol>\n<h3>MyKinsta\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b<\/h3>\n<ol start=\"1\">\n<li>\u307e\u3060\u304a\u6301\u3061\u3067\u306a\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/kinqsta.com\/jp\/mykinsta\/\">MyKinsta<\/a>\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ol>\n<ol start=\"2\">\n<li>\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u300c<strong>\u30b5\u30fc\u30d3\u30b9\u3092\u8ffd\u52a0<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u65b0\u898f\u4f5c\u6210\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<ol start=\"3\">\n<li>\u521d\u3081\u3066\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u306f\u3001GitHub\u3001GitLab\u3001\u307e\u305f\u306f Bitbucket \u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u63a5\u7d9a\u3057\u3001\u7279\u5b9a\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ol>\n<ol start=\"4\">\n<li>\u30d5\u30a9\u30fc\u30e0\u306b\u5fc5\u8981\u4e8b\u9805\u3092\u8a18\u5165\u3057\u3001<code>APP_KEY<\/code>\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002.<strong>env<\/strong>\u30d5\u30a1\u30a4\u30eb\u3067\u5bfe\u5fdc\u3059\u308b\u5024\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<ol start=\"5\">\n<li>\u30d3\u30eb\u30c9\u30ea\u30bd\u30fc\u30b9\u3092\u9078\u629e\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d3\u30eb\u30c9\u30d1\u30b9\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001Dockerfile\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30d3\u30eb\u30c9\u3059\u308b\u304b\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u3053\u306e\u30c7\u30e2\u3067\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u57fa\u3065\u304d\u81ea\u52d5\u3067\u30a2\u30d7\u30ea\u306e\u30d3\u30eb\u30c9\u3092\u884c\u3044\u307e\u3059\u3002<\/li>\n<\/ol>\n<ol start=\"6\">\n<li>\u30c7\u30d7\u30ed\u30a4\u6642\u306b\u5b9f\u884c\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u30d7\u30ed\u30bb\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u306e\u6642\u70b9\u3067\u306f\u7a7a\u767d\u306e\u307e\u307e\u3067\u69cb\u3044\u307e\u305b\u3093\u3002<\/li>\n<\/ol>\n<ol start=\"7\">\n<li>\u6700\u5f8c\u306b\u3001\u304a\u652f\u6255\u3044\u65b9\u6cd5\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u304a\u652f\u6255\u3044\u65b9\u6cd5\u306e\u78ba\u8a8d\u5f8c\u3001MyKinsta\u306e\u30b7\u30b9\u30c6\u30e0\u306b\u3088\u308a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u30c7\u30d7\u30ed\u30a4\u3055\u308c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306bURL\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u307e\u3059\u3002<\/p>\n<figure style=\"width: 492px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2023\/07\/laravel-crud-mykinsta-deployment-process.png\" alt=\"MyKinsta\u3067\u306e\u30c7\u30d7\u30ed\u30a4\u5b8c\u4e86\u306e\u8868\u793a\" width=\"492\" height=\"618\"><figcaption class=\"wp-caption-text\">\u30c7\u30d7\u30ed\u30a4\u5b8c\u4e86<\/figcaption><\/figure>\n<p>\u30ea\u30f3\u30af\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304c\u3001\u30a2\u30d7\u30ea\u304c\u52d5\u4f5c\u3059\u308b\u305f\u3081\u306b\u306f\u6709\u52b9\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u304c\u5fc5\u8981\u306a\u305f\u3081\u3001<code>500 | Server Error<\/code>\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3057\u307e\u3059\u3002<\/p>\n<h3>MyKinsta\u7d4c\u7531\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<ol start=\"1\">\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001MyKinsta\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u884c\u304d\u3001\u300c<strong>\u30b5\u30fc\u30d3\u30b9\u3092\u8ffd\u52a0<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<ol start=\"2\">\n<li>\u300c<strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/strong>\u300d\u3092\u9078\u629e\u3057\u3001\u5e0c\u671b\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3001\u30bf\u30a4\u30d7\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30d5\u30a9\u30fc\u30e0\u306b\u5165\u529b\u3057\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5408\u3063\u305f\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u306e\u5834\u6240\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30a4\u30ba\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<ol start=\"3\">\n<li>\u6b21\u306e\u30da\u30fc\u30b8\u3067\u306f\u3001\u8cbb\u7528\u306e\u6982\u8981\u3068\u304a\u652f\u6255\u3044\u65b9\u6cd5\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u300c<strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u30d7\u30ed\u30bb\u30b9\u3092\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<ol start=\"4\">\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001MyKinsta\u306e\u30b5\u30fc\u30d3\u30b9\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u300c<strong>\u5916\u90e8\u63a5\u7d9a<\/strong>\u300d\u307e\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<ol start=\"5\">\n<li>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u300c<strong>\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8<\/strong>\u300d\u30da\u30fc\u30b8\u306b\u623b\u308a\u3001\u300c<strong>\u8a2d\u5b9a<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u300c<strong>\u74b0\u5883\u5909\u6570<\/strong>\u300d\u307e\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3001\u300c<strong>\u74b0\u5883\u5909\u6570\u3092\u8ffd\u52a0<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u9806\u5e8f\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u74b0\u5883\u5909\u6570\u3068\u3057\u3066\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-env\">DB_CONNECTION=mysql\nDB_HOST=External hostname\nDB_PORT=External port\nDB_DATABASE=Database name\nDB_USERNAME=Username\nDB_PASSWORD=Password<\/code><\/pre>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u74b0\u5883\u5909\u6570\u4e00\u89a7\u304c\u3053\u306e\u3088\u3046\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<figure style=\"width: 561px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2023\/07\/laravel-crud-env-variables-kinsta.png\" alt=\".env\u74b0\u5883\u5909\u6570\u4e00\u89a7\" width=\"561\" height=\"629\"><figcaption class=\"wp-caption-text\">.env\u5909\u6570<\/figcaption><\/figure>\n<ol start=\"6\">\n<li>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u300c<strong>\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8<\/strong>\u300d\u30da\u30fc\u30b8\u306b\u884c\u304d\u3001\u300c<strong>\u30c7\u30d7\u30ed\u30a4\u3059\u308b<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u624b\u52d5\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u3001\u5909\u66f4\u5185\u5bb9\u3092\u9069\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3078\u306e\u63a5\u7d9a\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/li>\n<\/ol>\n<ol start=\"7\">\n<li>\u6700\u5f8c\u306b\u3001MyKinsta\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001<strong>.env<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u5148\u307b\u3069\u3068\u540c\u3058\u8a8d\u8a3c\u60c5\u5831\u3092\u4f7f\u3063\u3066\u7de8\u96c6\u3057\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30ed\u30fc\u30ab\u30eb\u30a2\u30d7\u30ea\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre><code class=\"language-sh\">php artisan migrate<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3079\u3066\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001MyKinsta\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u6700\u521d\u306e\u30c7\u30d7\u30ed\u30a4\u5f8c\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u305fURL\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Laravel\u306f\u3001CRUD\u6a5f\u80fd\u3092\u5fc5\u8981\u3068\u3059\u308b\u5805\u7262\u3067\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u306e\u306b\u4fbf\u5229\u306a\u5305\u62ec\u7684\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u76f4\u611f\u7684\u306a\u69cb\u6587\u3068\u5f37\u529b\u306a\u6a5f\u80fd\u306b\u3088\u308a\u3001Laravel\u3067\u306fCRUD\u64cd\u4f5c\u3092\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u7c21\u5358\u306b\u7d44\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001CRUD\u64cd\u4f5c\u306e\u57fa\u672c\u7684\u306a\u6982\u5ff5\u3068\u3001Laravel\u306e\u7d44\u307f\u8fbc\u307f\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u305f\u5b9f\u88c5\u65b9\u6cd5\u3092\u3054\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u4ee5\u4e0b\u3082\u6271\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>MyKinsta\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u63a5\u7d9a\u3059\u308b\u65b9\u6cd5<\/li>\n<li>Laravel\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u3092\u5b9a\u7fa9\u3057\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30d5\u30a1\u30a4\u30eb\u3068\u305d\u306e\u95a2\u6570\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/li>\n<li>\u30e2\u30c7\u30eb\u306e\u5b9a\u7fa9\u3068\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u63a5\u7d9a\uff08Laravel\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3067Blade\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u3001\u5bfe\u5fdc\u3059\u308b\u30da\u30fc\u30b8\u3068\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3057\u3001MyKinsta\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u30c6\u30b9\u30c8\uff09<\/li>\n<\/ul>\n<p>Laravel\u3067\u306eCRUD\u64cd\u4f5c\u304c\u3044\u304b\u306b\u7c21\u5358\u304b\u304a\u5206\u304b\u308a\u3044\u305f\u3060\u3051\u305f\u3068\u601d\u3044\u307e\u3059\u3002\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3068<a href=\"https:\/\/sevalla.com\/application-hosting\/\">\u30db\u30b9\u30c6\u30a3\u30f3\u30b0<\/a>\u7ba1\u7406\u306e\u624b\u9593\u3092\u3054\u3063\u305d\u308a\u7701\u304f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u300c<a href=\"https:\/\/my.kinqsta.com\/login?lang=ja\">MyKinsta<\/a>\u300d\u3092\u662f\u975e\u3068\u3082\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel\u306f\u3001\u5909\u5316\u306e\u3081\u307e\u3050\u308b\u3057\u3044\u30a6\u30a7\u30d6\u958b\u767a\u696d\u754c\u306b &#8230;<\/p>\n","protected":false},"author":290,"featured_media":49033,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[],"topic":[784],"class_list":["post-49032","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","topic-laravel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5<\/title>\n<meta name=\"description\" content=\"CRUD\u64cd\u4f5c\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u99c6\u52d5\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6b20\u304b\u305b\u306a\u3044\u8981\u7d20\u3067\u3059\u3002Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u51e6\u7406\u3092\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u3092\u884c\u3046\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"CRUD\u64cd\u4f5c\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u99c6\u52d5\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6b20\u304b\u305b\u306a\u3044\u8981\u7d20\u3067\u3059\u3002Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u51e6\u7406\u3092\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-17T09:03:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-21T08:50:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/08\/laravel-crud.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"6084\" \/>\n\t<meta property=\"og:image:height\" content=\"3042\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Marcia Ramos\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"CRUD\u64cd\u4f5c\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u99c6\u52d5\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6b20\u304b\u305b\u306a\u3044\u8981\u7d20\u3067\u3059\u3002Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u51e6\u7406\u3092\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/08\/laravel-crud.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Marcia Ramos\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"7\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/\"},\"author\":{\"name\":\"Marcia Ramos\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/72bff0015d3fb3ba3d8a85494dc0b116\"},\"headline\":\"Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u3092\u884c\u3046\u65b9\u6cd5\",\"datePublished\":\"2023-12-17T09:03:30+00:00\",\"dateModified\":\"2023-12-21T08:50:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/\"},\"wordCount\":273,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/08\/laravel-crud.jpg\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/\",\"url\":\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/\",\"name\":\"Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\",\"isPartOf\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/08\/laravel-crud.jpg\",\"datePublished\":\"2023-12-17T09:03:30+00:00\",\"dateModified\":\"2023-12-21T08:50:29+00:00\",\"description\":\"CRUD\u64cd\u4f5c\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u99c6\u52d5\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6b20\u304b\u305b\u306a\u3044\u8981\u7d20\u3067\u3059\u3002Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u51e6\u7406\u3092\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#primaryimage\",\"url\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/08\/laravel-crud.jpg\",\"contentUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/08\/laravel-crud.jpg\",\"width\":6084,\"height\":3042},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinqsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Laravel\",\"item\":\"https:\/\/kinqsta.com\/jp\/topics\/laravel\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u3092\u884c\u3046\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#website\",\"url\":\"https:\/\/kinqsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinqsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinqsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/72bff0015d3fb3ba3d8a85494dc0b116\",\"name\":\"Marcia Ramos\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0d680db24858fdf61a7e7ce3c1a160f5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0d680db24858fdf61a7e7ce3c1a160f5?s=96&d=mm&r=g\",\"caption\":\"Marcia Ramos\"},\"description\":\"I'm the Editorial Team Lead at Kinsta. I'm a open source enthusiast and I love coding. With more than 10 years of technical writing and editing for the tech industry, I love collaborating with people to create clear and concise pieces of content and improve workflows.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/marciadiasramos\/\"],\"honorificSuffix\":\"B.Sc.\",\"gender\":\"Female\",\"knowsLanguage\":[\"English\",\"Portuguese\"],\"jobTitle\":\"Editorial Team Lead\",\"worksFor\":\"Kinsta Inc.\",\"url\":\"https:\/\/kinqsta.com\/jp\/blog\/author\/marciaramos\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5","description":"CRUD\u64cd\u4f5c\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u99c6\u52d5\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6b20\u304b\u305b\u306a\u3044\u8981\u7d20\u3067\u3059\u3002Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u51e6\u7406\u3092\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/","og_locale":"ja_JP","og_type":"article","og_title":"Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u3092\u884c\u3046\u65b9\u6cd5","og_description":"CRUD\u64cd\u4f5c\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u99c6\u52d5\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6b20\u304b\u305b\u306a\u3044\u8981\u7d20\u3067\u3059\u3002Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u51e6\u7406\u3092\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2023-12-17T09:03:30+00:00","article_modified_time":"2023-12-21T08:50:29+00:00","og_image":[{"width":6084,"height":3042,"url":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/08\/laravel-crud.jpg","type":"image\/jpeg"}],"author":"Marcia Ramos","twitter_card":"summary_large_image","twitter_description":"CRUD\u64cd\u4f5c\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u99c6\u52d5\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6b20\u304b\u305b\u306a\u3044\u8981\u7d20\u3067\u3059\u3002Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u51e6\u7406\u3092\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","twitter_image":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/08\/laravel-crud.jpg","twitter_creator":"@Kinsta_JP","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Marcia Ramos","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"7\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#article","isPartOf":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/"},"author":{"name":"Marcia Ramos","@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/72bff0015d3fb3ba3d8a85494dc0b116"},"headline":"Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u3092\u884c\u3046\u65b9\u6cd5","datePublished":"2023-12-17T09:03:30+00:00","dateModified":"2023-12-21T08:50:29+00:00","mainEntityOfPage":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/"},"wordCount":273,"commentCount":0,"publisher":{"@id":"https:\/\/kinqsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#primaryimage"},"thumbnailUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/08\/laravel-crud.jpg","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/","url":"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/","name":"Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5","isPartOf":{"@id":"https:\/\/kinqsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#primaryimage"},"image":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#primaryimage"},"thumbnailUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/08\/laravel-crud.jpg","datePublished":"2023-12-17T09:03:30+00:00","dateModified":"2023-12-21T08:50:29+00:00","description":"CRUD\u64cd\u4f5c\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u99c6\u52d5\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6b20\u304b\u305b\u306a\u3044\u8981\u7d20\u3067\u3059\u3002Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u51e6\u7406\u3092\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#primaryimage","url":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/08\/laravel-crud.jpg","contentUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/08\/laravel-crud.jpg","width":6084,"height":3042},{"@type":"BreadcrumbList","@id":"https:\/\/kinqsta.com\/jp\/blog\/laravel-crud\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinqsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"Laravel","item":"https:\/\/kinqsta.com\/jp\/topics\/laravel\/"},{"@type":"ListItem","position":3,"name":"Laravel\u3067CRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u8fbc\u307f\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u3092\u884c\u3046\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/kinqsta.com\/jp\/#website","url":"https:\/\/kinqsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinqsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinqsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinqsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinqsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/72bff0015d3fb3ba3d8a85494dc0b116","name":"Marcia Ramos","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0d680db24858fdf61a7e7ce3c1a160f5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0d680db24858fdf61a7e7ce3c1a160f5?s=96&d=mm&r=g","caption":"Marcia Ramos"},"description":"I'm the Editorial Team Lead at Kinsta. I'm a open source enthusiast and I love coding. With more than 10 years of technical writing and editing for the tech industry, I love collaborating with people to create clear and concise pieces of content and improve workflows.","sameAs":["https:\/\/www.linkedin.com\/in\/marciadiasramos\/"],"honorificSuffix":"B.Sc.","gender":"Female","knowsLanguage":["English","Portuguese"],"jobTitle":"Editorial Team Lead","worksFor":"Kinsta Inc.","url":"https:\/\/kinqsta.com\/jp\/blog\/author\/marciaramos\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts\/49032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/users\/290"}],"replies":[{"embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/comments?post=49032"}],"version-history":[{"count":15,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts\/49032\/revisions"}],"predecessor-version":[{"id":53676,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts\/49032\/revisions\/53676"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/49032\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/49032\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/49032\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/49032\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/49032\/translations\/de"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/49032\/translations\/jp"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/49032\/translations\/nl"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/49032\/translations\/es"},{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/49032\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/media\/49033"}],"wp:attachment":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/media?parent=49032"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/tags?post=49032"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/topic?post=49032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}