{"id":4576,"date":"2019-09-04T18:44:06","date_gmt":"2019-09-04T09:44:06","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=4576"},"modified":"2020-09-15T17:49:38","modified_gmt":"2020-09-15T08:49:38","slug":"laravel6-0%e3%81%a7%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=4576","title":{"rendered":"Laravel6.x\u4ee5\u964d\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3064\u3044\u306b2019\u5e749\u67083\u65e5\u306b<code>Laravel 6.0<\/code>\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u306e\u3067\u3001\u65e9\u901f\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/laravel-news.com\/laravel-6\" target=\"_blank\" rel=\"noopener noreferrer\">\u30ea\u30ea\u30fc\u30b9\u60c5\u5831\u306b\u3088\u308b\u3068<\/a>\u3044\u304f\u3064\u304b\u306e\u6a5f\u80fd\u304c\u8ffd\u52a0\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u4eca\u5f8c\u3044\u304f\u3064\u304b\u7d39\u4ecb\u3092\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002\u305c\u3072\u3054\u671f\u5f85\u4e0b\u3055\u3044\ud83d\ude0a\u2728<\/p>\n<p>\u305d\u3057\u3066\u3001\u4eca\u56de6.0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u306a\u308a\u4e0a\u624b\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u70b9\u304c\u3042\u3063\u305f\u306e\u3067\u7c21\u5358\u306b\u305d\u306e\u89e3\u6c7a\u6cd5\u3092\u7d39\u4ecb\u3057\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306f\u4f55\u304b\u3068\u8a00\u3046\u3068\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3<code>5.8<\/code>\u307e\u3067\u306f\u3001<code>Laravel<\/code>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068<code>php artisan make:auth<\/code>\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u3066\u3001\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u305f\u306e\u3067\u3059\u304c<code>6.0<\/code>\u304b\u3089\u306f\u3001\u305d\u306e\u624b\u9806\u304c\u5909\u66f4\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f<code>Laravel 6.0<\/code>\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u306e\u304a\u5f79\u306b\u7acb\u3066\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<p><strong>\u3010\u8ffd\u8a18\uff1a2020.9.15\u3011<\/strong><code>Laravel 8.x<\/code>\u304b\u3089\u306f\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u306f<code>Jetstream<\/code>\u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u8a73\u3057\u304f\u306f\u3001<a href=\"https:\/\/blog.capilano-fw.com\/?p=7827\">Laravel8.x\u4ee5\u964d\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3566 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png\" alt=\"\" width=\"306\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png 306w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1-287x300.png 287w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/p>\n<p>\u958b\u767a\u74b0\u5883\uff1a Laravel 6.0<\/p>\n<h1>\u4f55\u304c\u5909\u308f\u3063\u305f\u306e\u304b<\/h1>\n<p><code>Laravel 6.0<\/code>\u304b\u3089\u306f\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u306f\u3001<a href=\"https:\/\/github.com\/laravel\/ui\" target=\"_blank\" rel=\"noopener noreferrer\">laravel\/ui<\/a>\u3068\u3044\u3046\u540d\u524d\u306e<strong>\u5225\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3057\u3066\u7ba1\u7406\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/strong>\u305d\u306e\u305f\u3081\u3001\u307e\u305a\u306f\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h1>laravel\/ui\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u5225\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3044\u3063\u3066\u3082\u3001\u3082\u3061\u308d\u3093<code>composer<\/code>\u4e00\u767a\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\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<p>\u3010Laravel 7.x\u306e\u5834\u5408\u3011<\/p>\n<pre><strong>composer require laravel\/ui<\/strong><\/pre>\n<p>\u3010Laravel 6.x\u306e\u5834\u5408\u3011<\/p>\n<pre><strong>composer require laravel\/ui:^1.0 --dev<\/strong><\/pre>\n<h1>artisan\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b<\/h1>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u65b0\u3057\u3044<code>artisan<\/code>\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u304a\u597d\u307f\u306b\u5408\u308f\u305b\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>Vue\u3067\u5b9f\u88c5\u3059\u308b\u5834\u5408<\/strong><\/p>\n<pre><strong>php artisan ui vue --auth<\/strong><\/pre>\n<p><strong>React\u3067\u5b9f\u88c5\u3059\u308b\u5834\u5408<\/strong><\/p>\n<pre><strong>php artisan ui react --auth<\/strong><\/pre>\n<p>\u203b \u3061\u306a\u307f\u306b\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068<code>HomeController<\/code>\u304c\u81ea\u52d5\u7684\u306b\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u305d\u308c\u307e\u3067\u306b\u4f5c\u6210\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u6c17\u3092\u3064\u3051\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u4e0a\u66f8\u304d\u3055\u308c\u307e\u3059\uff09<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u72b6\u614b\u3067\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30fb\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067DB\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>php artisan migrate<\/strong><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068DB\u30c6\u30fc\u30d6\u30eb\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4577\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_1.png\" alt=\"\" width=\"683\" height=\"380\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_1.png 683w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_1-300x167.png 300w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/p>\n<h1>npm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30d3\u30eb\u30c9\u3059\u308b<\/h1>\n<p><code>Vue<\/code>\u306a\u3069\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092<code>npm<\/code>\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>npm install<\/strong><\/pre>\n<p>\u7d9a\u3044\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>npm run dev<\/strong><\/pre>\n<p>\uff08\u3082\u3057\u304f\u306f\u3001\u672c\u756a\u74b0\u5883\u306a\u3089\u3001\u3053\u3061\u3089\uff09<\/p>\n<pre><strong>npm run production<\/strong><\/pre>\n<p>\u3053\u306e\u6642\u70b9\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u81ea\u4f53\u306e\u5b9f\u88c5\u306f\u5b8c\u4e86\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30d6\u30e9\u30a6\u30b6\u3067\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u53f3\u4e0a\u306b<code>LOGIN<\/code>\u3068<code>REGISTER<\/code>\u306e\u30ea\u30f3\u30af\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4578\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_2.png\" alt=\"\" width=\"1343\" height=\"736\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_2.png 1343w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_2-300x164.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_2-768x421.png 768w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_2-1024x561.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\uff01<\/p>\n<h1>Seeder\u3067\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u3063\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u308b<\/h1>\n<p>\u305b\u3063\u304b\u304f\u3053\u3053\u307e\u3067\u3084\u3063\u3066\u304d\u305f\u306e\u3067\u3001\u3053\u3053\u304b\u3089\u306f\u4ee5\u524d\u306e<code>Laravel<\/code>\u3068\u540c\u3058\u3067\u3059\u304c\u3001<code>Seeder<\/code>\u3067\u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u3063\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067<code>Seeder<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>php artisan make:seeder UsersTableSeeder<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>database\/seeds\/UsersTableSeeder.php<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u4e2d\u8eab\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>&lt;?php\r\n\r\nuse Illuminate\\Database\\Seeder;\r\n\r\nclass UsersTableSeeder extends Seeder\r\n{\r\n    \/**\r\n     * Run the database seeds.\r\n     *\r\n     * @return void\r\n     *\/\r\n    public function run()\r\n    {\r\n        <strong>$names = [<\/strong>\r\n<strong>            'taro' =&gt; '\u592a\u90ce',<\/strong>\r\n<strong>            'jiro' =&gt; '\u6b21\u90ce',<\/strong>\r\n<strong>            'saburo' =&gt; '\u4e09\u90ce',<\/strong>\r\n<strong>            'shiro' =&gt; '\u56db\u90ce',<\/strong>\r\n<strong>            'goro' =&gt; '\u4e94\u90ce',<\/strong>\r\n<strong>            'rokuro' =&gt; '\u516d\u90ce',<\/strong>\r\n<strong>            'shichiro' =&gt; '\u4e03\u90ce',<\/strong>\r\n<strong>            'hachiro' =&gt; '\u516b\u90ce',<\/strong>\r\n<strong>            'kuro' =&gt; '\u4e5d\u90ce'<\/strong>\r\n<strong>        ];<\/strong>\r\n\r\n<strong>        foreach ($names as $name_en =&gt; $name_jp) {<\/strong>\r\n\r\n<strong>            \\App\\User::create([<\/strong>\r\n<strong>                'name' =&gt; $name_jp,<\/strong>\r\n<strong>                'email' =&gt; $name_en .'@example.com',<\/strong>\r\n<strong>                'password' =&gt; bcrypt('xxxxxxxx')<\/strong>\r\n<strong>            ]);<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n    }\r\n}<\/pre>\n<p>\u305d\u3057\u3066\u3001<code>Seeder<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u305f\u3060\u3051\u3067\u306f\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092DB\u306b\u8ffd\u52a0\u3067\u304d\u307e\u305b\u3093\u306e\u3067\u3001\u540c\u3058\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u3042\u308b<code>database\/seeds\/DatabaseSeeder.php<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u5b9f\u969b\u306b\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3092\u5916\u3057\u3066\u6709\u52b9\u306b\u3059\u308b\u3060\u3051\u3067\u3059\uff09<\/p>\n<pre>&lt;?php\r\n\r\nuse Illuminate\\Database\\Seeder;\r\n\r\nclass DatabaseSeeder extends Seeder\r\n{\r\n    \/**\r\n     * Seed the application's database.\r\n     *\r\n     * @return void\r\n     *\/\r\n    public function run()\r\n    {\r\n         <strong>$this-&gt;call(UsersTableSeeder::class);<\/strong>\r\n    }\r\n}<\/pre>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan db:seed<\/strong><\/pre>\n<p>\u3053\u308c\u3067\u3001\u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u306e\u767b\u9332\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4579\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_3.png\" alt=\"\" width=\"609\" height=\"464\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_3.png 609w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_3-300x229.png 300w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/p>\n<p>\u5f8c\u306f\u3001\u3053\u308c\u307e\u3067\u3068\u540c\u3058\u304f\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u304b\u3089\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4580\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_4.png\" alt=\"\" width=\"769\" height=\"308\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_4.png 769w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_4-300x120.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_4-768x308.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4581\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_5.png\" alt=\"\" width=\"760\" height=\"145\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_5.png 760w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/09\/laravel_60_auth_5-300x57.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/p>\n<p>\u306a\u304a\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u306f\u3058\u3081\u304b\u3089\u3084\u308a\u76f4\u3059\u5834\u5408\u306b<code>Seeder<\/code>\u3082\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u304c\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<pre><strong>php artisan migrate:fresh --seed<\/strong><\/pre>\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\uff01<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u4eca\u56de\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u306e\u5b9f\u88c5\u65b9\u6cd5\u304c\u5909\u308f\u308a\u307e\u3057\u305f\u304c\u3001\u3053\u308c\u306f\u300c\u3088\u308a\u5fc5\u8981\u306a\u4eba\u3060\u3051\u5fc5\u8981\u306a\u4f5c\u696d\u3092\u3059\u308b\u300d\u3068\u3044\u3046\u6d41\u308c\u306b\u306a\u3063\u305f\u306e\u304b\u306a\u3068\u611f\u3058\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u5f53\u305f\u308a\u306f<code>Bootstrap<\/code>\u304c\u4ee5\u524d\u307b\u3069\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u3067\u306f\u306a\u304f\u306a\u3063\u3066\u304d\u3066\u3044\u308b\u5f71\u97ff\u304c\u3042\u308b\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u78ba\u304b\u306b\u3001\u79c1\u3082<a href=\"https:\/\/tailwindcss.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Tailwind CSS<\/a>\u3068\u304b\u3082\u3084\u3063\u3066\u307f\u305f\u3044\u3067\u3059\u306d\u3002\uff08\u3068\u306f\u3044\u3048\u3001\u3088\u304f\u5229\u7528\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u3066\u308b<a href=\"https:\/\/adminlte.io\/themes\/AdminLTE\/index2.html\" target=\"_blank\" rel=\"noopener noreferrer\">AdminLTE<\/a>\u3068\u304b\u304c<code>Bootstrap<\/code>\u306a\u306e\u3067\u306a\u304b\u306a\u304b\u96e3\u3057\u3044\u3067\u3057\u3087\u3046\u3051\u3069\u30fb\u30fb\u30fb\ud83d\ude02\uff09<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u305c\u3072\u7686\u3055\u3093\u3082<code>Laravel 6.0<\/code>\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\uff01<\/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","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3064\u3044\u306b2019\u5e749\u67083\u65e5\u306bLaravel 6.0\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u306e\u3067\u3001\u65e9\u901f\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 \u30ea\u30ea\u30fc\u30b9\u60c5\u5831\u306b\u3088\u308b\u3068\u3044\u304f\u3064\u304b\u306e\u6a5f\u80fd\u304c\u8ffd\u52a0\u306b\u306a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=4576\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel6.x\u4ee5\u964d\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":4583,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[58],"class_list":["post-4576","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-58"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4576","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=4576"}],"version-history":[{"count":8,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4576\/revisions"}],"predecessor-version":[{"id":4588,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4576\/revisions\/4588"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/4583"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}