{"id":8301,"date":"2020-11-16T07:00:54","date_gmt":"2020-11-15T22:00:54","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=8301"},"modified":"2020-11-11T05:28:46","modified_gmt":"2020-11-10T20:28:46","slug":"laravel8-x%e4%bb%a5%e9%99%8d%e3%81%a7%e3%80%8c%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%80%8d%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e6%a9%9f%e8%83%bd%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=8301","title":{"rendered":"Laravel Breeze\u3067\u300c\u30b7\u30f3\u30d7\u30eb\u306a\u300d\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001<code>Laravel 8.x<\/code>\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u65b0\u30ed\u30b0\u30a4\u30f3\u30d1\u30c3\u30b1\u30fc\u30b8\u300c<strong>Laravel Jetstream<\/strong>\u300d\u306e\u9ad8\u6a5f\u80fd\u306b\u9a5a\u304b\u3055\u308c\u305f\u3070\u304b\u308a\u3067\u3059\u304c\u3001\u5c11\u3057\u524d\u306b\u307e\u305f\u65b0\u3057\u3044\u30ed\u30b0\u30a4\u30f3\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u306e\u3092\u3054\u5b58\u77e5\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305d\u306e\u540d\u3082\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">Laravel Breeze\uff08\u3089\u3089\u3079\u308b\u30fb\u3076\u308a\u30fc\u305a\uff09<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u304b\u304b\u3059\u308b\u3068\u3001\u300c\u3082\u3046<code>Jetstream<\/code>\u304c\u3042\u308b\u306e\u306b\u306a\u3093\u3067\u2753\u300d\u3068\u601d\u308f\u308c\u305f\u65b9\u3082\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u5b9f\u306f\u3053\u306e<code>Laravel Breeze<\/code>\u306f\u30b3\u30f3\u30bb\u30d7\u30c8\u304c\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u300e\u30b7\u30f3\u30d7\u30eb\u306a\u30b9\u30bf\u30fc\u30c8\u5730\u70b9\u300f<\/strong><\/p>\n<p>\u3068\u306a\u3063\u3066\u3044\u3066\u3001<code>Jetstream<\/code>\u3068\u306e\u9055\u3044\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30b7\u30f3\u30d7\u30eb\u306b\u30ed\u30b0\u30a4\u30f3\u3001\u4f1a\u54e1\u767b\u9332\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u518d\u767a\u884c\u3060\u3051<\/li>\n<li>livewire \u3084 inertia \u306f\u4f7f\u308f\u305a\u3001Blade\u3092\u4f7f\u3046<\/li>\n<\/ul>\n<p>\u305d\u306e\u305f\u3081\u3001\u307b\u307c<code>Laravel 7.x<\/code>\u307e\u3067\u4f7f\u308f\u308c\u3066\u3044\u305f <strong><a href=\"https:\/\/github.com\/laravel\/ui\">laravel\/ui<\/a><\/strong> \u3068\u540c\u3058\u3082\u306e\u3068\u8003\u3048\u3066\u3044\u3044\u3067\u3057\u3087\u3046\u3002\uff08\u3082\u3057\u304b\u3059\u308b\u3068\u3001<code>livewire<\/code>\u3084<code>inertia.js<\/code>\u306e\u5b66\u7fd2\u30b3\u30b9\u30c8\u3092\u907f\u3051\u305f\u3044\u3068\u3044\u3046\u8981\u671b\u304c\u3042\u3063\u305f\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff09<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f\u300c\u3088\u308a\u30b7\u30f3\u30d7\u30eb\u306a\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u300d\u3092<code>Laravel Breeze<\/code>\u3067\u5b9f\u88c5\u3057\u3066\u307f\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 style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6066 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_23.png\" alt=\"\" width=\"370\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_23.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_23-300x259.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/>\u300c\u51ac\u306f\u7bb1\u3067\u30ab\u30a4\u30ed\u3092\u8cb7\u3044\u307e\u3059\u2757\u30c9\u30c3\u30b5\u30ea\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 8.x<\/p>\n<h1>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001\u307e\u305a\u306f<code>Laravel Breeze<\/code>\u3092\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>composer require laravel\/breeze --dev<\/strong><\/pre>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3089\u3001\u4ee5\u4e0b\u306e<code>Artisan<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>php artisan breeze:install<\/strong><\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u793a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8302\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_1.png\" alt=\"\" width=\"625\" height=\"105\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_1.png 625w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_1-300x50.png 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<h1>\u5fc5\u8981\u306b\u306a\u308bJavaScript\u3001CSS\u3092\u30d3\u30eb\u30c9\u3059\u308b<\/h1>\n<p>\u307e\u3060\u3053\u306e\u72b6\u614b\u3067\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u306b\u5fc5\u8981\u306a<code>JavaScript<\/code>\u3001<code>CSS<\/code>\u30d5\u30a1\u30a4\u30eb\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30d3\u30eb\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>npm install &amp;&amp; npm run dev<\/strong><\/pre>\n<p>\u203b \u30d3\u30eb\u30c9\u304c\u7d42\u308f\u308b\u3068\u3001<code>JavaScript<\/code>\u306f\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u3072\u3068\u307e\u3068\u3081\u306b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>JavaScript\u3000\u30fb\u30fb\u30fb\u3000public\/js\/app.js<\/li>\n<li>CSS\u3000\u30fb\u30fb\u30fb\u3000public\/css\/app.css<\/li>\n<\/ul>\n<h1>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u30ed\u30b0\u30a4\u30f3\u306b\u5fc5\u8981\u306a<code>DB<\/code>\u30c6\u30fc\u30d6\u30eb\u3092\u3064\u304f\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan migrate<\/strong><\/pre>\n<p>\u5b9f\u884c\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8304\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_3.png\" alt=\"\" width=\"640\" height=\"357\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_3.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_3-300x167.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u3053\u308c\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b8c\u6210\u3067\u3059\u3002<br \/>\n\u3053\u306e\u72b6\u614b\u3067\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u3092\u518d\u8aad\u8fbc\u307f\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u753b\u9762\u53f3\u4e0a\u306b\u30ed\u30b0\u30a4\u30f3\u3068\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u30da\u30fc\u30b8\u3078\u306e\u30ea\u30f3\u30af\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8303\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_2.png\" alt=\"\" width=\"640\" height=\"242\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_2.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_2-300x113.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<h1>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u3064\u304f\u308b<\/h1>\n<p>\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b8c\u4e86\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u30ed\u30b0\u30a4\u30f3\u304c\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u30c7\u30fc\u30bf\u304c\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u3053\u308c\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u203b \u306a\u304a\u3001<code>Jetstream<\/code>\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u306f<code>Laravel 8.x<\/code>\u304b\u3089\u65b0\u3057\u304f\u306a\u3063\u305f<code>Factory<\/code>\u3092\u4f7f\u3044\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306e\u30c6\u30fc\u30de\u306f\u300c<strong>\u30b7\u30f3\u30d7\u30eb\u306a\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong>\u300d\u306a\u306e\u3067\u3001<code>Seeder<\/code>\u3092\u4f7f\u3063\u305f\u5185\u5bb9\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3057<code>Factory<\/code>\u304c\u304a\u597d\u307f\u306e\u65b9\u306f\u4ee5\u4e0b\u306eURL\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\ud83d\udcdd\u00a0<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><\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:seed UsersTableSeeder<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>database\/seeders\/UsersTableSeeder.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace Database\\Seeders;\r\n\r\n<strong>use App\\Models\\User; \/\/ \ud83d\udc48 \u3053\u3053\u306b\u6ce8\u610f\u3067\u3059<\/strong>\r\nuse Illuminate\\Database\\Seeder;\r\n\r\nclass UsersTableSeeder extends Seeder\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>            User::create([<\/strong>\r\n<strong>                'name' =&gt; $name_jp, \/\/ \u30e6\u30fc\u30b6\u30fc\u540d<\/strong>\r\n<strong>                'email' =&gt; $name_en .'@example.com', \/\/ \ud83d\udc48 \u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/strong>\r\n<strong>                'password' =&gt; bcrypt('xxxxxxxx') \/\/ \ud83d\udc48 \u30d1\u30b9\u30ef\u30fc\u30c9<\/strong>\r\n<strong>            ]);<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n    }\r\n}<\/pre>\n<p>\u26a0 <code>Laravel 8.x<\/code>\u304b\u3089\u306f\u3001\u521d\u671f\u72b6\u614b\u306e\u30e2\u30c7\u30eb\u306e\u30d5\u30a9\u30eb\u30c0\u304c\u5909\u66f4\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u6c17\u3092\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3067\u306f\u3001<code>Seeder<\/code>\u30d5\u30a1\u30a4\u30eb\u304c\u5b9f\u884c\u3055\u308c\u308b\u3088\u3046\u306b<code>Laravel<\/code>\u306b\u767b\u9332\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>database\/seeders\/DatabaseSeeder.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace Database\\Seeders;\r\n\r\nuse Illuminate\\Database\\Seeder;\r\n\r\nclass DatabaseSeeder extends Seeder\r\n{\r\n    public function run()\r\n    {\r\n        \/\/ \\App\\Models\\User::factory(10)-&gt;create();\r\n        <strong>$this-&gt;call(UsersTableSeeder::class); \/\/ \ud83d\udc48 \u3053\u3053\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f<\/strong>\r\n    }\r\n}<\/pre>\n<p>\u3053\u308c\u3067\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067DB\u3092\u521d\u671f\u5316\uff06\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u8ffd\u52a0\u3092\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>php artisan migrate:fresh --seed<\/strong><\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001<code>users<\/code>\u30c6\u30fc\u30d6\u30eb\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8305\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_4.png\" alt=\"\" width=\"535\" height=\"464\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_4.png 535w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_4-300x260.png 300w\" sizes=\"auto, (max-width: 535px) 100vw, 535px\" \/><\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<\/p>\n<p>\u300c<strong>https:\/\/******\/login<\/strong>\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u5148\u307b\u3069\u767b\u9332\u3057\u305f\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\uff06\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3001\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8307\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_5.png\" alt=\"\" width=\"480\" height=\"401\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_5.png 480w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_5-300x251.png 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8308\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_6.png\" alt=\"\" width=\"631\" height=\"734\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_6.png 631w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/11\/laravel_breeze_6-258x300.png 258w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u30ed\u30b0\u30a4\u30f3\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<h1>\u3061\u306a\u307f\u306b &#8211; \u305d\u306e\uff11\uff1a\u95a2\u9023\u60c5\u5831<\/h1>\n<p>\u30ed\u30b0\u30a4\u30f3\u306b\u95a2\u9023\u3059\u308b\u72ec\u81ea\u8a2d\u5b9a\u306e\u305f\u3081\u306b\u95a2\u9023\u60c5\u5831\u3092\u307e\u3068\u3081\u307e\u3057\u305f<\/p>\n<h2>\u30ed\u30b0\u30a4\u30f3\u5f8c\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u5148\u306f\u3069\u3053\u3067\u5909\u66f4\u3059\u308b\uff1f<\/h2>\n<p>\u4ee5\u4e0b\u306e\u90e8\u5206\u3067\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>app\/Providers\/RouteServiceProvider.php<\/strong><\/p>\n<pre><strong>public const HOME = '\/dashboard';<\/strong><\/pre>\n<p>\u203b \u306a\u304a\u3001\u3053\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8URL\u306f\u901a\u5e38\u306e\u30ed\u30b0\u30a4\u30f3\u3060\u3051\u3067\u306a\u304f\u3001\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306a\u3069\u3067\u3044\u304f\u3064\u304b\u306e\u5834\u6240\u3067\u3082\u4f7f\u308f\u308c\u308bURL\u3067\u3059\u3002<\/p>\n<p><strong>\u4f8b\uff1a<\/strong>\u300capp\/Http\/Middleware\/RedirectIfAuthenticated.php\u300d \u306a\u3069<\/p>\n<h2>\u30ed\u30b0\u30a4\u30f3\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306f\u3069\u3053\u306b\u3042\u308b\uff1f<\/h2>\n<p>\u300c<strong>app\/Http\/Controllers\/Auth\/AuthenticatedSessionController.php<\/strong>\u300d\u306b\u306a\u308a\u307e\u3059\u3002\u306a\u304a\u3001\u5404\u30e1\u30bd\u30c3\u30c9\u306e\u610f\u5473\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>create()\uff1a \u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0<\/li>\n<li>store()\uff1a \u30ed\u30b0\u30a4\u30f3\u306e\u5b9f\u884c<\/li>\n<li>destroy()\uff1a \u30ed\u30b0\u30a2\u30a6\u30c8<\/li>\n<\/ul>\n<h2>\u30ed\u30b0\u30a2\u30a6\u30c8\u5f8c\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u5148\u3092\u5909\u66f4\u3059\u308b\u306b\u306f\uff1f<\/h2>\n<p>\u4ee5\u4e0b\u306e\u5834\u6240\u3067\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>app\/Http\/Controllers\/Auth\/AuthenticatedSessionController.php<\/strong><\/p>\n<pre>public function destroy(Request $request)\r\n{\r\n    Auth::logout();\r\n\r\n    $request-&gt;session()-&gt;invalidate();\r\n\r\n    $request-&gt;session()-&gt;regenerateToken();\r\n\r\n    <strong>return redirect('\/'); \/\/ \ud83d\udc48 \u3053\u3053\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044<\/strong>\r\n}<\/pre>\n<h2>CSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u4f55\uff1f<\/h2>\n<p><code>Laravel Jetstream<\/code>\u3068\u540c\u3058\u304f<a href=\"https:\/\/tailwindcss.com\/\">Tailwind CSS<\/a>\u3067\u3059\u3002<\/p>\n<p>Tailwind\uff08\u8ffd\u3044\u98a8\uff09+ Breeze\uff08\u305d\u3088\u98a8\uff09 \uff1d \u5d50\u304c\u5dfb\u304d\u8d77\u3053\u308b\u30a4\u30e1\u30fc\u30b8\u3067\u3057\u3087\u3046\u304b\uff08\u7b11\uff09<\/p>\n<h1>\u3061\u306a\u307f\u306b &#8211; \u305d\u306e\uff12\uff1a\u65e5\u672c\u8a9e\u5316<\/h1>\n<p>\u65e5\u672c\u8a9e\u5316\u3059\u308b\u306b\u306f<code>Jetstream<\/code>\u3068\u307b\u307c\u540c\u3058\u306a\u306e\u3067\u4ee5\u4e0b\u306eURL\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u203b \u306a\u304a\u3001<code>Laravel Breeze<\/code>\u306e\u5834\u5408\u306f\u3059\u3067\u306b\u300c<strong>resource\/views\/auth<\/strong>\u300d\u30d5\u30a9\u30eb\u30c0\u306b\u30d3\u30e5\u30fc\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\ud83d\udcdd\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=7930\">Laravel Jetstream \u306e\u5404\u7a2e\u30d5\u30a9\u30fc\u30e0\u3092\u65e5\u672c\u8a9e\u5316\u3059\u308b<\/a><\/p>\n<h1>\u3061\u306a\u307f\u306b &#8211; \u305d\u306e\uff13\uff1aJetstream\u306b\u3042\u308b\u305d\u306e\u4ed6\u306e\u6a5f\u80fd\u306f\uff1f<\/h1>\n<p>\u6b8b\u5ff5\u306a\u304c\u3089 2020.11.11\u73fe\u5728\u3001<code>Laravel Breeze<\/code>\u306b\u306f\uff12\u6bb5\u968e\u8a8d\u8a3c\u306a\u3069\u306e\u6a5f\u80fd\u306f\u3064\u3044\u3066\u3044\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001\u305d\u3046\u3044\u3063\u305f\u6a5f\u80fd\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f<code>Laravel Jetstream<\/code>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3082\u3057\u304b\u3059\u308b\u3068<code>Laravel Breeze<\/code>\u3082\u300c<code>livewire<\/code>\u30fb<code>inertia<\/code>\u3092\u4f7f\u308f\u306a\u3044\u7528\u300d\u3068\u3057\u3066\u4eca\u5f8c\u306f\u3082\u3063\u3068\u9ad8\u6a5f\u80fd\u306b\u306a\u3063\u3066\u3044\u304f\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\ud83d\udc4d<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u300c\u3088\u308a\u30b7\u30f3\u30d7\u30eb\u306a\u300d\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u5b9f\u88c5\u3067\u304d\u308b\u30d1\u30c3\u30b1\u30fc\u30b8<code>Laravel Breeze<\/code>\u306e\u3054\u7d39\u4ecb\u3092\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><code>Laravel Jetstream<\/code>\u306f\u3001\u591a\u6a5f\u80fd\u3067\u3059\u304c\u305d\u308c\u3092\u4f7f\u3044\u3053\u306a\u3059\u306b\u306f\u3044\u308d\u3044\u308d\u3068\u77e5\u8b58\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001\u3053\u3046\u3044\u3063\u305f\u9078\u629e\u80a2\u304c\u51fa\u3066\u304f\u308b\u306e\u306f\u5b09\u3057\u3044\u9650\u308a\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u3067\u304d\u308c\u3070<code>Breeze<\/code>\u306e\u65b9\u306b\u3082\uff12\u6bb5\u968e\u8a8d\u8a3c\u304c\u307b\u3057\u3044\u304b\u306a\u3001\u306a\u3093\u3066\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u305d\u308c\u306f\u3084\u306f\u308a\u30bc\u30a4\u30bf\u30af\u306a\u8a71\u3067\u3059\u3088\u306d\u30fb\u30fb\u30fb\ud83d\ude02<\/p>\n<p>\u3082\u3057\u4eca\u5f8c\uff12\u6bb5\u968e\u8a8d\u8a3c\u304c\u8ffd\u52a0\u3055\u308c\u305d\u3046\u306b\u306a\u3044\u306a\u3068\u601d\u3063\u305f\u3089\u3001\u81ea\u529b\u3067\u5b9f\u88c5\u3059\u308b\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3405 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18.png\" alt=\"\" width=\"310\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18.png 310w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18-291x300.png 291w\" sizes=\"auto, (max-width: 310px) 100vw, 310px\" \/>\u300c\u691c\u8a3c\u7528\u306biPhone 8\uff08\u4e2d\u53e4\uff09\u3092<br \/>\n\u6ce8\u6587\u3057\u307e\u3057\u305f\uff08\u30a2\u30d7\u30ea\u958b\u767a\u3059\u308b\u2753\uff09\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001Laravel 8.x\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u65b0\u30ed\u30b0\u30a4\u30f3\u30d1\u30c3\u30b1\u30fc\u30b8\u300cLaravel Jetstream\u300d\u306e\u9ad8\u6a5f\u80fd\u306b\u9a5a\u304b\u3055\u308c\u305f\u3070\u304b\u308a\u3067\u3059\u304c\u3001\u5c11\u3057\u524d\u306b\u307e\u305f\u65b0\u3057\u3044\u30ed\u30b0 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=8301\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel Breeze\u3067\u300c\u30b7\u30f3\u30d7\u30eb\u306a\u300d\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":8312,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[58],"class_list":["post-8301","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\/8301","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=8301"}],"version-history":[{"count":6,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8301\/revisions"}],"predecessor-version":[{"id":8314,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8301\/revisions\/8314"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/8312"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}