{"id":7799,"date":"2020-09-07T07:00:11","date_gmt":"2020-09-06T22:00:11","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=7799"},"modified":"2020-09-24T17:49:25","modified_gmt":"2020-09-24T08:49:25","slug":"laravel-8-x-%e3%81%ae%e6%96%b0%e6%a9%9f%e8%83%bd%e3%83%bb%e5%a4%89%e6%9b%b4%e3%81%be%e3%81%a8%e3%82%81","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=7799","title":{"rendered":"Laravel 8.x \u306e\u65b0\u6a5f\u80fd\u30fb\u5909\u66f4\u70b9\u306e\u307e\u3068\u3081"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u30012020\u5e74\u306e3\u6708\u306b<code>7.x<\/code>\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f<code>Laravel<\/code>\u3067\u3059\u304c\u3001\u7d04\u534a\u5e74\u306e\u671f\u9593\u3092\u7d4c\u3066\u3001\u3053\u306e9\u67088\u65e5\u306b<strong>\u300c\u30d0\u30fc\u30b8\u30e7\u30f38.x\u300d\u304c\u516c\u958b\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/strong>\ud83c\udf89\u2728<\/p>\n<p>\u305d\u3057\u3066\u3001<code>Laravel<\/code>\u304c\u5927\u597d\u304d\u306a\u958b\u767a\u8005\u3068\u3057\u3066\u3001\u6642\u671f\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u6c17\u306b\u306a\u3063\u3066\u3057\u3087\u3046\u304c\u306a\u3044\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u30d5\u30e9\u30a4\u30f3\u30b0\u3057\u3066\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u5185\u5bb9\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u307e\u3068\u3081\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\uff08<a href=\"https:\/\/laravel.com\/docs\/8.x\/releases\" target=\"_blank\" rel=\"noopener noreferrer\">8.x\u306e\u30da\u30fc\u30b8<\/a>\u304c\u3059\u3067\u306b\u5b58\u5728\u3057\u3066\u3044\u307e\u3057\u305f\uff09<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u306e\u4eca\u5f8c\u306e\u53c2\u8003\u306b\u306a\u308c\u3070\u5b09\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u203b\u306a\u304a\u30018.x\u306e\u30ea\u30ea\u30fc\u30b9\u524d\u306b\u66f8\u3044\u305f\u8a18\u4e8b\u3067\u3059\u306e\u3067\u5185\u5bb9\u304c\u5909\u66f4\u306b\u306a\u308b\u3053\u3068\u3082\u8003\u3048\u3089\u308c\u307e\u3059\u3002\u305d\u306e\u3042\u305f\u308a\u306f\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001\u307e\u3060\u5b9f\u969b\u306b\u52d5\u304b\u3057\u3066\u3044\u306a\u3044\u90e8\u5206\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u4eca\u5f8c\u5909\u66f4\u3059\u308b\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u3072\u3068\u3064\u305a\u3064\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<p>\u3010\u8ffd\u8a18\uff1a2020.09.08\u3011\u30aa\u30fc\u30c8\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u306b\u3064\u3044\u3066\u306e\u65b0\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f<br \/>\n\u3010\u8ffd\u8a18\uff1a2020.09.24\u3011\u30eb\u30fc\u30c8\u8a2d\u5b9a\u306e\u5909\u66f4\u70b9\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4445 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_2.png\" alt=\"\" width=\"370\" height=\"310\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_2.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_2-300x251.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/>\u300cLaravel\u958b\u767a\u8005\u306e\u307f\u306a\u3055\u3093\u3001<br \/>\n\u304a\u75b2\u308c\u69d8\u3067\u3054\u3056\u3044\u307e\u3059\uff01\u300d<\/p>\n<h1>Laravel 8.x\u3067\u5fc5\u8981\u306b\u306a\u308b\u74b0\u5883<\/h1>\n<p>\u65b0\u6a5f\u80fd\u306e\u7d39\u4ecb\u306b\u884c\u304f\u524d\u306b\u3001\u307e\u305a\u5b9f\u884c\u74b0\u5883\u3092\u898b\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>PHP &gt;= 7.3 \ud83d\udc48<\/li>\n<li>BCMath PHP Extension<\/li>\n<li>Ctype PHP Extension<\/li>\n<li>Fileinfo PHP extension<\/li>\n<li>JSON PHP Extension<\/li>\n<li>Mbstring PHP Extension<\/li>\n<li>OpenSSL PHP Extension<\/li>\n<li>PDO PHP Extension<\/li>\n<li>Tokenizer PHP Extension<\/li>\n<li>XML PHP Extension<\/li>\n<\/ul>\n<p><code>PHP<\/code>\u306e\u62e1\u5f35\u6a5f\u80fd\u3068\u3057\u3066\u306f\u3001\u524d\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u540c\u3058\u3067\u3059\u304c\u3001<strong>\u3064\u3044\u306bPHP\u306e\u6700\u4f4e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b<code>7.3<\/code>\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/strong><\/p>\n<p>\u79c1\u306e\u74b0\u5883\u306b\u3082\u3053\u306e\u9593<code>PHP 7.4<\/code>\u3092\u5c0e\u5165\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u7740\u3005\u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9032\u3093\u3067\u3044\u304d\u3001\u3053\u3046\u306a\u308b\u3068<code>Laravel 5.0 ~ 5.6<\/code>\u3042\u305f\u308a\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u306e\u4ed8\u304d\u5408\u3044\u65b9\u3082\u8003\u3048\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306a\u3068\u8003\u3048\u51fa\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\u30b5\u30dd\u30fc\u30c8\u671f\u9593\u306f\uff1f<\/h1>\n<p>\u3044\u308f\u3086\u308b<strong>\u300cLTS\u300d\uff08\u9577\u304f\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304f\u308c\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\uff09\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/strong><\/p>\n<p>\u30b5\u30dd\u30fc\u30c8\u306f\u3001\u4ee5\u4e0b\u306e\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30d0\u30b0\u4fee\u6b63\u306e\u30b5\u30dd\u30fc\u30c8\uff1a 2021\u5e74\uff13\u6708\uff18\u65e5\u307e\u3067<\/li>\n<li>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30b5\u30dd\u30fc\u30c8\uff1a 2021\u5e74\uff19\u6708\uff18\u65e5\u307e\u3067<\/li>\n<\/ul>\n<p>\u305d\u306e\u305f\u3081\u3001\u3082\u3057\u3088\u308a\u9577\u3044\u30b5\u30dd\u30fc\u30c8\u306e\u65b9\u304c\u3044\u3044\u5834\u5408\u306f\u3001\u4e00\u756a\u65b0\u3057\u3044<code>LTS<\/code>\u30d0\u30fc\u30b8\u30e7\u30f3\u306e<code>6.x<\/code>\u3092\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<p><code>6.x<\/code>\u306e\u30b5\u30dd\u30fc\u30c8\u306f\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30d0\u30b0\u4fee\u6b63\u306e\u30b5\u30dd\u30fc\u30c8\uff1a 2021\u5e74\uff19\u6708\uff13\u65e5\u307e\u3067<\/li>\n<li>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30b5\u30dd\u30fc\u30c8\uff1a 2022\u5e74\uff19\u6708\uff13\u65e5\u307e\u3067<\/li>\n<\/ul>\n<h1>Laravel Jetstream<\/h1>\n<p><code>Laravel<\/code>\u306f\u3001\u30d0\u30fc\u30b8\u30e7\u30f3<code>6.x<\/code>\u304b\u3089\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u304c\u5225\u30d1\u30c3\u30b1\u30fc\u30b8\u306e<a href=\"https:\/\/github.com\/laravel\/ui\" target=\"_blank\" rel=\"noopener noreferrer\">laravel\/ui<\/a>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5f62\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u3053\u308c\u304c\u65b0\u30d1\u30c3\u30b1\u30fc\u30b8<a href=\"https:\/\/github.com\/laravel\/jetstream\" target=\"_blank\" rel=\"noopener noreferrer\">Laravel Jetstream<\/a>\u3068\u5165\u308c\u66ff\u308f\u308a\u306b\u306a\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u8a73\u3057\u3044\u6a5f\u80fd\u3067\u8a00\u3046\u3068\u3001\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30ed\u30b0\u30a4\u30f3<\/li>\n<li>\u30e6\u30fc\u30b6\u30fc\u767b\u9332<\/li>\n<li>\u30e1\u30fc\u30eb\u8a8d\u8a3c\uff08\u672c\u4eba\u78ba\u8a8d\u3001\u672c\u767b\u9332\u30e1\u30fc\u30eb\uff09<\/li>\n<li>\uff12\u6bb5\u968e\u8a8d\u8a3c<\/li>\n<li>\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406<\/li>\n<li>API\uff08Laravel Sanctum\uff09<\/li>\n<li>\u30c1\u30fc\u30e0\u7ba1\u7406\u3000\ud83d\udc48 \u304a\u3063\u2757<\/li>\n<\/ul>\n<p>\u3053\u306e\u4e2d\u3067\u79c1\u304c\u6c17\u306b\u306a\u3063\u305f\u306e\u306f\u300c<strong>\u30c1\u30fc\u30e0\u7ba1\u7406<\/strong>\u300d\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u6a5f\u80fd\u306f\u3001\u300c<strong>\u30e6\u30fc\u30b6\u30fc\u306e\u5f79\u5272<\/strong>\u300d\u304c\u7ba1\u7406\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u3001\u3053\u308c\u307e\u3067\u306f\u308f\u3056\u308f\u3056\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306b<code>role<\/code>\u306e\u3088\u3046\u306a\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u307e\u3057\u305f\u304c\u3001\u7701\u7565\u3067\u304d\u305d\u3046\u3067\u3059\ud83d\ude0a<\/p>\n<p>\u3055\u3089\u306b\u3001\u3053\u306e<code>Jetstream<\/code>\u306e\u3082\u3046\u4e00\u3064\u306e\u7279\u5fb4\u3068\u3057\u3066\u3001\u5229\u7528\u3057\u3066\u3044\u308bCSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c<strong><code>bootstrap<\/code>\u3067\u306f\u306a\u304f\u3001<a href=\"https:\/\/tailwindcss.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Tailwind CSS<\/a> \u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/strong>\uff08\u3053\u306e\u3042\u305f\u308a\u306f\u3001CSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u696d\u754c\u306e\u5909\u9077\u3092\u611f\u3058\u305a\u306b\u306f\u3044\u3089\u308c\u307e\u305b\u3093\uff09<\/p>\n<p>\u307e\u305f\u3001JS\u306e\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066<a href=\"https:\/\/laravel-livewire.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">livewire<\/a>\u304bSPA\uff08\u30b7\u30f3\u30b0\u30eb\u30fb\u30da\u30fc\u30b8\u30fb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff09\u5411\u3051\u306e<a href=\"https:\/\/inertiajs.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">inertia<\/a>\u3092\u9078\u3076\u3053\u3068\u306b\u306a\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u203b livewire\u306e\u8a73\u3057\u3044\u5185\u5bb9\u306f\u904e\u53bb\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/blog.capilano-fw.com\/?p=4466\" target=\"_blank\" rel=\"noopener noreferrer\">\u3010\u904e\u53bb\u8a18\u4e8b\u3011Laravel + livewire\u3067\u8a95\u751f\u65e5\u304b\u3089\u5e74\u9f62\u3092\u81ea\u52d5\u8a08\u7b97\u3059\u308b\u30b5\u30f3\u30d7\u30eb<\/a><\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u79c1\u306e\u597d\u304d\u306a<code>Vue.js<\/code>\u3068\u3082\u9023\u643a\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u3053\u306e\u3042\u305f\u308a\u306f\u4eca\u5f8c\u306e\u8a18\u4e8b\u3067\u3054\u7d39\u4ecb\u3057\u3088\u3046\u3068\u8003\u3048\u3066\u3044\u307e\u3059\ud83d\udc4d<\/p>\n<h1>\u30e2\u30c7\u30eb\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u5909\u66f4\u306b\u306a\u308b<\/h1>\n<p>\u3053\u308c\u307e\u3067\u3001<code>Laravel<\/code>\u306e\u30e2\u30c7\u30eb\u306f\u521d\u671f\u72b6\u614b\u3067\u306f<code>app<\/code>\u76f4\u4e0b\u306b\u8a2d\u7f6e\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u8981\u671b\u304c\u591a\u304b\u3063\u305f\u3088\u3046\u3067<code>8.x<\/code>\u304b\u3089\u306f<code>app\/Models<\/code>\u304c\u521d\u671f\u30d5\u30a9\u30eb\u30c0\u306b\u306a\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\uff08\u78ba\u304b\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3084View\u306f\u5c02\u7528\u30d5\u30a9\u30eb\u30c0\u304c\u3042\u308b\u306e\u306b\u3001\u30e2\u30c7\u30eb\u3060\u3051\u306a\u3044\u3068\u3044\u3046\u306e\u306f\u9055\u548c\u611f\u306f\u3042\u308a\u307e\u3057\u305f\u3088\u306d\uff09<\/p>\n<p>\u305f\u3060\u3057\u3001<code>app<\/code>\u76f4\u4e0b\u306b\u6163\u308c\u3066\u3057\u307e\u3063\u305f\u4eba\u306e\u305f\u3081\u306b\u3001\u3082\u3057<code>app\/Models<\/code>\u3092\u524a\u9664\u3059\u308c\u3070\u3001<code>php artisan make:model ****<\/code>\u3092\u5b9f\u884c\u3057\u3066\u3082\u3053\u308c\u307e\u3067\u3069\u304a\u308a<code>app<\/code>\u76f4\u4e0b\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u304f\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<h1>Factory \u306e\u69cb\u9020\u304c\u5909\u66f4\u306b\u306a\u308b<\/h1>\n<p><code>Factory<\/code>\u306f\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u5834\u9762\u3067\u4f7f\u308f\u308c\u308b\u300c<strong>\u30c7\u30fc\u30bf\u751f\u6210\u5668<\/strong>\u300d\u3067\u3059\u304c\u3001\u3053\u306e\u69cb\u9020\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306a<code>function<\/code>\u3092\u4f7f\u3046\u5f62\u304b\u3089\u3001\u30af\u30e9\u30b9\u30d9\u30fc\u30b9\u306b\u306a\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre>\/\/ \u3053\u308c\u307e\u3067\u306e\u66f8\u304d\u65b9\r\n\r\n$factory-&gt;define(User::class, function (Faker $faker) {\r\n    return [\r\n        'name' =&gt; $faker-&gt;name,\r\n        'email' =&gt; $faker-&gt;unique()-&gt;safeEmail,\r\n        'email_verified_at' =&gt; now(),\r\n        'password' =&gt; '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC\/.og\/at2.uheWG\/igi', \/\/ password\r\n        'remember_token' =&gt; Str::random(10),\r\n    ];\r\n});<\/pre>\n<pre>\/\/ \u65b0\u3057\u3044\u66f8\u304d\u65b9\uff1a \u30af\u30e9\u30b9\u3092\u4f7f\u3046\u5f62\u3078\u79fb\u884c\r\n\r\nclass UserFactory extends Factory\r\n{\r\n<strong>    protected $model = User::class;<\/strong>\r\n\r\n<strong>    public function definition()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return [<\/strong>\r\n<strong>            'name' =&gt; $this-&gt;faker-&gt;name,<\/strong>\r\n<strong>            'email' =&gt; $this-&gt;faker-&gt;unique()-&gt;safeEmail,<\/strong>\r\n<strong>            'email_verified_at' =&gt; now(),<\/strong>\r\n<strong>            'password' =&gt; '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC\/.og\/at2.uheWG\/igi', \/\/ password<\/strong>\r\n<strong>            'remember_token' =&gt; Str::random(10),<\/strong>\r\n<strong>        ];<\/strong>\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u305d\u3057\u3066\u3001\u4f7f\u3044\u65b9\u3082\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u304b\u3089\u3001<\/p>\n<pre><strong>$user = factory(App\\User::class)-&gt;make();<\/strong><\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u5909\u66f4\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>\\App\\Models\\User::factory()-&gt;create();<\/strong><\/pre>\n<h1>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u3072\u3068\u307e\u3068\u3081\u306b\u3057\u3066\u304f\u308c\u308bMigration Squashing<\/h1>\n<p>\u958b\u767a\u3059\u308b\u30b7\u30b9\u30c6\u30e0\u304c\u5927\u304d\u304f\u306a\u308b\u306b\u3064\u308c\u3066\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5927\u91cf\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u5834\u5408\u300c<strong>Migration Squashing<\/strong>\u300d\u304cDB\u30c7\u30fc\u30bf\u3092\u3072\u3068\u307e\u3068\u3081\u306b\u3057\u3066\uff11\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u300c<strong>database<span class=\"token operator\">\/<\/span>schema<\/strong>\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4f5c\u6210\u3055\u308c\u3001\u30b3\u30de\u30f3\u30c9\u306f\u3001\u300c<strong>php artisan schema:dump<\/strong>\u300d\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u4f5c\u6210\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u306fSQL\u30d5\u30a1\u30a4\u30eb\u3068\u306e\u3053\u3068\u3067\u3059\u306e\u3067\u3001\u3053\u306e\u6a5f\u80fd\u3092\u4f7f\u3048\u3070\u3001\u305d\u308c\u4ee5\u964d\u306f\u9ad8\u901f\u306b\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u5b9f\u884c\u3067\u304d\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u306d\u3002<\/p>\n<h1>Job Batching<\/h1>\n<p><code>Job<\/code>\u3068\u306f\u3001\u30bf\u30a4\u30de\u30fc\u5b9f\u884c\u3059\u308b\u969b\u306b\u4f7f\u3046\u6a5f\u80fd\u306e\u3053\u3068\u3067\u3059\u3002\uff08\u8a73\u3057\u304f\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\uff09<\/p>\n<p>\u3010\u53c2\u8003\u8a18\u4e8b\u3011<a href=\"https:\/\/blog.capilano-fw.com\/?p=3679\" target=\"_blank\" rel=\"noopener noreferrer\">Laravel\u3067\u5b9a\u671f\u7684\u306b\u30bf\u30a4\u30de\u30fc\u5b9f\u884c\u3059\u308b\u5168\uff11\uff16\u5b9f\u4f8b\uff01<\/a><\/p>\n<p>\u305d\u3057\u3066\u3001<code>Job Batching<\/code>\u306f\u3053\u306e\u30bf\u30a4\u30de\u30fc\u306e\u4e00\u62ec\u51e6\u7406\u3092\u7ba1\u7406\u3059\u308b\u6a5f\u80fd\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>$batch = Bus::batch([<\/strong>\r\n<strong>    new ProcessPodcast(Podcast::find(1)), \/\/ \ud83d\udc48 \uff11\u500b\u76ee\u306eJob<\/strong>\r\n<strong>    new ProcessPodcast(Podcast::find(2)), \/\/ \ud83d\udc48 \uff12\u500b\u76ee\u306eJob<\/strong>\r\n<strong>    new ProcessPodcast(Podcast::find(3)), \/\/ \ud83d\udc48 \uff13\u500b\u76ee\u306eJob<\/strong>\r\n<strong>])-&gt;then(function (Batch $batch) {<\/strong>\r\n\r\n<strong>    \/\/ \u5168\u3066\u306e\u51e6\u7406\u304c\u3046\u307e\u304f\u3044\u3063\u305f\u5834\u5408...\ud83d\ude04<\/strong>\r\n\r\n<strong>})-&gt;catch(function (Batch $batch, Throwable $e) {<\/strong>\r\n\r\n<strong>    \/\/ \u9014\u4e2d\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u5834\u5408...\ud83d\ude2b<\/strong>\r\n\r\n<strong>})-&gt;finally(function (Batch $batch) {<\/strong>\r\n\r\n<strong>    \/\/ \u3069\u3061\u3089\u306b\u3057\u3066\u3082\u901a\u308b<\/strong>\r\n\r\n<strong>})-&gt;dispatch();<\/strong><\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u5f90\u3005\u306b\u5b9f\u884c\u3055\u308c\u308b<code>Job<\/code>\u306e\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u5206\u5c90\u3059\u308b\u5834\u6240\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001<code>JavaScript<\/code>\u3067\u306e\u958b\u767a\u3092\u3055\u308c\u308b\u65b9\u306f\u300c\u30c7\u30b8\u30e3\u30d6\u611f\u300d\u3042\u308b\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305d\u3046\u3067\u3059\u3002\u300c<strong>Promise.all()<\/strong>\u300d\u3068\u305d\u3063\u304f\u308a\u3067\u3059\u306d\u3002<\/p>\n<p>\u3044\u304f\u3064\u304b\u8a00\u8a9e\u3092\u4f53\u9a13\u3057\u3066\u304a\u304f\u3068\u3053\u3046\u3044\u3046\u3068\u304d\u306b\u300c\u3042\u3063\u3001\u3053\u308c\u306f\uff01\u300d\u3068\u306a\u308b\u306e\u3067\u6709\u5229\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\ud83d\udc4d<\/p>\n<pre><strong>\/\/ Promise.all() \u306e\u4f8b\r\n\r\nconst promises = [<\/strong>\r\n<strong>    new Promise((resolve, reject) =&gt; {<\/strong>\r\n<strong>        resolve('1st');<\/strong>\r\n<strong>    }),<\/strong>\r\n<strong>    new Promise((resolve, reject) =&gt; {<\/strong>\r\n<strong>        resolve('2nd');<\/strong>\r\n<strong>    }),<\/strong>\r\n<strong>    new Promise((resolve, reject) =&gt; {<\/strong>\r\n<strong>        reject('3rd');<\/strong>\r\n<strong>    })<\/strong>\r\n<strong>];<\/strong>\r\n\r\n<strong>Promise.all(promises)<\/strong>\r\n<strong>    .then(value =&gt; {<\/strong>\r\n\r\n<strong>        \/\/ \u5168\u3066\u306e\u51e6\u7406\u304c\u3046\u307e\u304f\u3044\u3063\u305f\u5834\u5408...\ud83d\ude04<\/strong>\r\n\r\n<strong>    })\r\n    .catch((error) =&gt; {<\/strong>\r\n\r\n<strong>        \/\/ \u9014\u4e2d\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u5834\u5408...\ud83d\ude2b<\/strong>\r\n\r\n<strong>    })<\/strong>\r\n<strong>    .finally(() =&gt; {<\/strong>\r\n\r\n<strong>        \/\/ \u3069\u3061\u3089\u306b\u3057\u3066\u3082\u901a\u308b<\/strong>\r\n\r\n<strong>    });<\/strong><\/pre>\n<h1>Rate Limiting \u304c\u6539\u826f\u3055\u308c\u305f<\/h1>\n<p><code>Rate Limiting<\/code>\u3068\u306f\u3001\u7c21\u5358\u306b\u8a00\u3046\u3068\u300c<strong>\u4f55\u56de\u307e\u3067\u30a2\u30af\u30bb\u30b9OK\uff1f<\/strong>\u300d\u3092\u6c7a\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3001\u4f8b\u3048\u3070\u7121\u5dee\u5225\u30a2\u30af\u30bb\u30b9\u3078\u306e\u5bfe\u51e6\u306b\u4f7f\u3063\u305f\u308a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u4eca\u56de\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3067\u3001\u3053\u306e<code>Rate Limiting<\/code>\u304c\u3088\u308a\u6c4e\u7528\u7684\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3001\u4f8b\u3048\u3070\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u56de\u6570\u3092\u5236\u9650\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre>\/\/ \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u56de\u6570\u3092\u5236\u9650\r\n\r\n$name = 'download';\r\n\r\nRateLimiter::for($name, function(Request $request) {\r\n\r\n    $user = $request-&gt;user();\r\n\r\n    if($user-&gt;service === 'premium') { \/\/ \u30d7\u30ec\u30df\u30a2\u30e0\u4f1a\u54e1\u306e\u5834\u5408\r\n\r\n        <strong>Limit::none(); \/\/ \u7121\u5236\u9650<\/strong>\r\n\r\n    } else { \/\/ \u7121\u6599\u4f1a\u54e1\r\n\r\n        <strong>Limit::perMinute(3); \/\/ \uff11\u5206\u9593\u306b3\u56de\u307e\u3067<\/strong>\r\n\r\n    }\r\n\r\n});<\/pre>\n<p>\u305d\u3057\u3066\u3001\u5b9a\u7fa9\u3092\u3057\u305f\u3089\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306e\u5f15\u6570\u3068\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<pre><strong>Route::middleware(['throttle:download'])-&gt;group(function() {<\/strong>\r\n    \r\n    \/\/ \u3053\u3053\u306b\u5236\u9650\u3092\u304b\u3051\u308b\u30eb\u30fc\u30c8\r\n    \r\n<strong>});<\/strong><\/pre>\n<h1>\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u30e2\u30fc\u30c9\u304c\u5909\u66f4\u306b\u306a\u3063\u305f<\/h1>\n<p>\u524d\u56de\u307e\u3067\u306f\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u30fb\u30e2\u30fc\u30c9\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u3066\u3082\u300c\u8a31\u53efIP\u30a2\u30c9\u30ec\u30b9\u300d\u3092\u767b\u9332\u3057\u3066\u304a\u3051\u3070\u901a\u5e38\u901a\u308a\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u3044\u307e\u3057\u305f\u304c\u3001<strong>\u3053\u308c\u304c\u5ec3\u6b62\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/strong><\/p>\n<p>\u305d\u3057\u3066\u3001\u305d\u306e\u4ee3\u308f\u308a\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30c8\u30fc\u30af\u30f3\u3092\u8a2d\u5b9a\u3057\u3001<\/p>\n<pre>php artisan down <strong>--secret=\"1630542a-246b-4b66-afa1-dd72a4c43515\"<\/strong><\/pre>\n<p>\u6b21\u306e\u3088\u3046\u306bURL\u306b\u542b\u3081\u3066\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30af\u30c3\u30ad\u30fc\u3092\u767a\u884c\u3057\u3066\u304f\u308c\u3066\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u3078\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<pre>https:\/\/\uff08\u3042\u306a\u305f\u306e\u30b5\u30a4\u30c8\uff09\/<strong>1630542a-246b-4b66-afa1-dd72a4c43515<\/strong>\r\n<\/pre>\n<h1>Queue\u306bcatch()\u304c\u8ffd\u52a0\u3055\u308c\u305f<\/h1>\n<p>\u30ad\u30e5\u30fc\u3068\u306f\u3001\u5927\u91cf\u306e\u51e6\u7406\u3092\u3059\u308b\u3068\u304d\u306b\u30b5\u30fc\u30d0\u30fc\u306b\u8ca0\u8377\u304c\u304b\u304b\u3089\u306a\u3044\u3088\u3046\u300c<strong>\u5f8c\u3067\u3061\u3087\u3063\u3068\u305a\u3064\u5b9f\u884c\u3059\u308b\u306d<\/strong>\u300d\u6a5f\u80fd\u306e\u3053\u3068\u3067\u3001\u305d\u306e\u30ad\u30e5\u30fc\u3092\u5b9f\u884c\u3059\u308b\u969b\u306b<code>catch()<\/code>\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre><strong>dispatch(function () use ($post) {<\/strong>\r\n\r\n<strong>    $post-&gt;publish();<\/strong>\r\n\r\n<strong>})-&gt;catch(function (Throwable $e) {<\/strong>\r\n    \r\n<strong>    \/\/ \u51e6\u7406\u306b\u5931\u6557\u3057\u305f\u3068\u304d<\/strong>\r\n\r\n<strong>});<\/strong><\/pre>\n<h1>Dynamic Blade \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/h1>\n<p>\u4f8b\u3048\u3070\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u60c5\u5831\u3092\u5143\u306b\u3057\u3066\u5b9f\u884c\u3059\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u9055\u3063\u3066\u304f\u308b\u3068\u304d\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u3093\u306a\u3068\u304d\u306b\u4f7f\u3048\u308b\u306e\u304c\u300c<strong>Dynamic Blade \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/strong>\u300d\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3001<code>$component_name<\/code>\u306e\u4e2d\u8eab\u3067\u547c\u3073\u51fa\u3059\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u81ea\u52d5\u3067\u5207\u308a\u66ff\u308f\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre>&lt;x-dynamic-component <strong>:component=\"$component_name\"<\/strong> \/&gt;<\/pre>\n<h1>Event::listener()\u304c\u6539\u5584\u3055\u308c\u305f<\/h1>\n<p>\u30a4\u30d9\u30f3\u30c8\u3092\u624b\u52d5\u3067\u767b\u9332\u3059\u308b\u306b\u306f\u3001<code>EventServiceProvider<\/code>\u306e<code>boot()<\/code>\u5185\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u76f4\u63a5\u767b\u9332\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>Event::listen('event.name', function ($foo, $bar) {\r\n\r\n    \/\/\r\n\r\n});<\/pre>\n<p>\u305d\u3057\u3066\u3001\u4eca\u56de\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u300c<strong>\u3069\u306e\u30a4\u30d9\u30f3\u30c8\u306a\u306e\u304b<\/strong>\u300d\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre>Event::listen(function (ProductOrdered $event) {\r\n\r\n    \/\/\r\n\r\n});<\/pre>\n<h1>\u6642\u9593\u306e\u30c6\u30b9\u30c8\u304c\u3057\u3084\u3059\u304f\u306a\u3063\u305f<\/h1>\n<p>\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3057\u3066\u3044\u308b\u3068\u3001\u305f\u307e\u306b\u300c<strong>\u672a\u6765\u3084\u904e\u53bb\u306e\u65e5\u4ed8\u306e\u3068\u304d\u306b\u3046\u307e\u304f\u3044\u304f\uff1f\uff1f<\/strong>\u300d\u3068\u3044\u3046\u30c6\u30b9\u30c8\u3092\u3059\u308b\u5fc5\u8981\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u307e\u3067\u306f\u3001\u65e5\u4ed8\u30d1\u30c3\u30b1\u30fc\u30b8<code>Carbon<\/code>\u3092\u4f7f\u3063\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u300c\uff08\u5b9f\u969b\u306b\u306f\u9055\u3046\u3051\u308c\u3069\u3082\uff09<strong>\u4eca\u306f\u3001\u6307\u5b9a\u306e\u6642\u9593\u3068\u3059\u308b<\/strong>\u300d\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<pre><strong>$date = Carbon::create(2001, 5, 21, 12);<\/strong>\r\n<strong>Carbon::setTestNow($date);<\/strong><\/pre>\n<p>\u3082\u3061\u308d\u3093\u3053\u306e\u65b9\u6cd5\u3067\u3082\u3044\u3044\u3067\u3059\u304c\u3001\u4eca\u56de\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3088\u308a\u76f4\u611f\u7684\u306b\u540c\u3058\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre>public function testTimeCanBeManipulated()\r\n{\r\n    <strong>$this-&gt;travel(5)-&gt;milliseconds(); \/\/ \uff15\u30df\u30ea\u79d2\u5f8c\uff08\u3068\u3057\u3066\u5b9f\u884c\uff09<\/strong>\r\n<strong>    $this-&gt;travel(5)-&gt;seconds(); \/\/ \uff15\u79d2\u5f8c\uff08\u3068\u3057\u3066\u5b9f\u884c\uff09<\/strong>\r\n<strong>    $this-&gt;travel(5)-&gt;minutes(); \/\/ \uff15\u5206\u5f8c\uff08\u3068\u3057\u3066\u5b9f\u884c\uff09<\/strong>\r\n<strong>    $this-&gt;travel(5)-&gt;hours(); \/\/ \uff15\u6642\u9593\u5f8c\uff08\u3068\u3057\u3066\u5b9f\u884c\uff09<\/strong>\r\n<strong>    $this-&gt;travel(5)-&gt;days(); \/\/ \uff15\u65e5\u5f8c\uff08\u3068\u3057\u3066\u5b9f\u884c\uff09<\/strong>\r\n<strong>    $this-&gt;travel(5)-&gt;weeks(); \/\/ \uff15\u9031\u5f8c\uff08\u3068\u3057\u3066\u5b9f\u884c\uff09<\/strong>\r\n<strong>    $this-&gt;travel(5)-&gt;years(); \/\/ \uff15\u5e74\u5f8c\uff08\u3068\u3057\u3066\u5b9f\u884c\uff09<\/strong>\r\n\r\n<strong>    $this-&gt;travel(-5)-&gt;hours(); \/\/ \u904e\u53bb\u3082OK<\/strong>\r\n\r\n<strong>    $this-&gt;travelTo(now()-&gt;subHours(6)); \/\/ \u4eca\u304b\u3089\uff16\u6642\u9593\u524d<\/strong>\r\n\r\n<strong>    $this-&gt;travelBack(); \/\/ \u73fe\u5728\u306e\u6642\u9593\u306b\u623b\u308b<\/strong>\r\n}<\/pre>\n<p>\u3064\u307e\u308a\u3001\u30c9\u30e9\u3048\u3082\u3093\u306e\u30bf\u30a4\u30e0\u30de\u30b7\u30f3\u306e\u3088\u3046\u306a\u611f\u899a\u3067\u4f7f\u3048\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306d\ud83d\udc4d<\/p>\n<h1>php artisan serve\u30b3\u30de\u30f3\u30c9\u304c\u81ea\u52d5\u3067\u518d\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f<\/h1>\n<p>\u3082\u3057<code>.env<\/code>\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u66f4\u304c\u3042\u3063\u305f\u5834\u5408\u3001\u81ea\u52d5\u3067\u3053\u308c\u3092\u30ad\u30e3\u30c3\u30c1\u3057\u3066\u518d\u8d77\u52d5\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h1>\u30da\u30fc\u30b8\u9001\u308a\u306e\u30ea\u30f3\u30af\u304cTailwind CSS\u306b\u306a\u3063\u305f<\/h1>\n<p>\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u306e<code>Jetstream<\/code>\u3067\u3082<code>Bootstrap<\/code>\u3067\u306f\u306a\u304f\u3001<code>Tailwind CSS<\/code>\u304c\u4f7f\u308f\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u540c\u3058\u304f\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u3067\u3082<code>Tailwind CSS<\/code>\u306b\u5909\u66f4\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001<code>Boostrap 3<\/code> &amp; <code>4<\/code> \u3067\u3082\u4f7f\u3048\u308b\u305d\u3046\u3067\u3059\u3002<\/p>\n<h1>\u30aa\u30fc\u30c8\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u304c\u597d\u304d\u306a\u756a\u53f7\u304b\u3089\u958b\u59cb\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f<\/h1>\n<p>\u30aa\u30fc\u30c8\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u306f\u30011, 2, 3&#8230; \u3068\u3044\u3046\u3088\u3046\u306b\u9806\u306b\u63a1\u756a\u3057\u3066\u304f\u308c\u308bDB\u6a5f\u80fd\u306e\u3053\u3068\u3067\u3001<code>Laravel<\/code>\u3067\u306f\u4e3b\u306b\u30c6\u30fc\u30d6\u30eb\u306e<code>id<\/code>\u306b\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001<code>Laravel 8.x<\/code>\u304b\u3089\u306f\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u4e2d\u3067\u3053\u306e\u30aa\u30fc\u30c8\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3092<strong>\u3069\u3053\u304b\u3089\u958b\u59cb\u3059\u308b\u304b\u3092\u6c7a\u3081\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/strong><\/p>\n<pre>public function up()\r\n{\r\n    Schema::create('posts', function (Blueprint $table) {\r\n    $table-&gt;id()-&gt;<strong>startingValue(1200)<\/strong>;<\/pre>\n<h1>\u30eb\u30fc\u30c8\u306e\u6307\u5b9a\u65b9\u6cd5\u304c\u5909\u308f\u3063\u305f<\/h1>\n<p>\u5143\u3005\u30eb\u30fc\u30c8\u306f\u6b21\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<pre>\/\/ Laravel 7.x \u4ee5\u524d\u306e\u66f8\u304d\u65b9\r\n\r\n<strong>Route::get('\/home', 'HomeController@index');<\/strong><\/pre>\n<p>\u3053\u308c\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9 + \u914d\u5217\u3092\u4f7f\u3046\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre>\/\/ Laravel 8.x \u304b\u3089\u306e\u4f7f\u3044\u65b9<strong>\r\n\r\nuse App\\Http\\Controllers\\HomeController;<\/strong>\r\n\r\nRoute::get('\/home', <strong>[HomeController::class, 'index']<\/strong>);<\/pre>\n<p>\u305f\u3060\u3057\u3001\u5b9f\u306f\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u3055\u3048\u3064\u3051\u308c\u3070\u3053\u308c\u307e\u3067\u306e\u3088\u3046\u306a\u6307\u5b9a\u3082OK\u3067\u3059\u3002\uff08\u30fb\u30fb\u30fb\u304c\u3061\u3087\u3063\u3068\u9577\u304f\u3066\u898b\u306b\u304f\u3044\u3067\u3059\u306d\ud83d\ude2b\uff09<\/p>\n<pre><strong>Route::get('\/home', 'App\\Http\\Controllers\\HomeController@index');<\/strong><\/pre>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f<code>Laravel<\/code>\u306e\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3<code>8.x<\/code>\u306e\u5185\u5bb9\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u3060\u5b8c\u5168\u306b\u30b3\u30fc\u30c9\u3092\u8a66\u3057\u3066\u307f\u305f\u308f\u3051\u3067\u306f\u306a\u3044\u3067\u3059\u304c\u3001\u3084\u306f\u308a\u5927\u304d\u306a\u5909\u66f4\u3068\u3044\u3048\u3070\u3001<code>Jetstream<\/code>\uff08\u30ed\u30b0\u30a4\u30f3\u307e\u308f\u308a\u306e\u6a5f\u80fd\uff09\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u3057\u304b\u3082\u3001<code>Jetstream<\/code>\u306f<code>Bootstrap<\/code>\u3067\u306f\u306a\u304f<code>Tailwind CSS<\/code>\u3084<code>livewire<\/code>\u3092\u4f7f\u3046\u306a\u3069\u4eca\u5f8c\u306e\u30a6\u30a7\u30d6\u958b\u767a\u306e\u65b9\u5411\u6027\u304c\u5c11\u3057\u5909\u308f\u3063\u3066\u304d\u3066\u3044\u308b\u3088\u3046\u306a\u6c17\u914d\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u306e\u8fba\u3082\u542b\u3081\u3066\u6ce8\u76ee\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u3093\u306b\u305b\u3088\u3001\u30db\u30f3\u30c8\u306b<code>Laravel<\/code>\u306e\u958b\u767a\u8005\u305f\u3061\u306b\u306f\u611f\u8b1d\u306e\u6c17\u6301\u3061\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3002\u3088\u304f\u3053\u3093\u306a\u306b\u305f\u304f\u3055\u3093\u306e\u30a2\u30a4\u30c7\u30a2\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u306d\u3002<\/p>\n<p>\u79c1\u304c<code>Laravel Lover<\/code>\u3067\u3044\u308b\u306e\u306f\u5f53\u5206\u7d9a\u304d\u305d\u3046\u3067\u3059\u3002\ud83d\ude04<\/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-2173 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png\" alt=\"\" width=\"300\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24-281x300.png 281w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>\u300cTailwind CSS\u3001\u52c9\u5f37\u3057\u3068\u3053\u3046\u304b\u306a\u30fb\u30fb\u30fb\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u30012020\u5e74\u306e3\u6708\u306b7.x\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fLaravel\u3067\u3059\u304c\u3001\u7d04\u534a\u5e74\u306e\u671f\u9593\u3092\u7d4c\u3066\u3001\u3053\u306e9\u67088\u65e5\u306b\u300c\u30d0\u30fc\u30b8\u30e7\u30f38.x\u300d\u304c\u516c\u958b\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002\ud83c\udf89\u2728 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=7799\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel 8.x \u306e\u65b0\u6a5f\u80fd\u30fb\u5909\u66f4\u70b9\u306e\u307e\u3068\u3081&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":7805,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-7799","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/7799","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=7799"}],"version-history":[{"count":18,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/7799\/revisions"}],"predecessor-version":[{"id":8031,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/7799\/revisions\/8031"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/7805"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}