{"id":12900,"date":"2024-07-21T07:00:26","date_gmt":"2024-07-20T22:00:26","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=12900"},"modified":"2024-06-23T02:12:05","modified_gmt":"2024-06-22T17:12:05","slug":"%e3%80%90%e3%81%9f%e3%81%a3%e3%81%9f3%e3%82%b9%e3%83%86%e3%83%83%e3%83%97%e3%80%91laravel%e3%81%8b%e3%82%89%e6%97%a2%e5%ad%98%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%a7%e8%aa%8d%e8%a8%bc%e3%81%99","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=12900","title":{"rendered":"\u30103\u30b9\u30c6\u30c3\u30d7\u3067\u89e3\u6c7a\u3011Laravel\u304b\u3089\u65e2\u5b58\u30c6\u30fc\u30d6\u30eb\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\uff08\u6570\u3048\u3066\u306a\u3044\u3067\u3059\u304c\uff09\u6d3b\u52d5\u671f\u9593\u3092\u8003\u3048\u308b\u3068\u3001\u304a\u305d\u3089\u304f100\u56de\u4ee5\u4e0a\u306e\u6848\u4ef6\u3092\u3053\u306a\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304c\u597d\u304d\u3060\u304b\u3089\u3001\u3069\u306e\u958b\u767a\u3082\u8208\u5473\u6df1\u3044\u3093\u3067\u3059\u3002<br \/>\n\u305f\u3060\u3001\u305f\u307e\u306b\u300c<strong>\u3046\u30fc\u3093\u3001\u306a\u308b\u307b\u3069\ud83d\ude05<\/strong>\u300d\u3068\u306a\u308b\u3082\u306e\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<ul>\n<li>\u5148\u4ee3\u306e\u30b3\u30fc\u30c9\u304c\u3054\u3061\u3083\u3064\u3044\u3066\u3044\u308b<\/li>\n<li>\u96e3\u8aad\u5316\u3055\u308c\u305f\u30b3\u30fc\u30c9\u3092\u89e3\u6790\u3057\u306a\u304d\u3083\u3044\u3051\u306a\u3044<\/li>\n<li>\u958b\u767a\u30e1\u30f3\u30d0\u30fc\u304c\u9000\u793e\u3057\u3066\u3044\u3066\u3001\u8cea\u554f\u3067\u304d\u306a\u3044<\/li>\n<\/ul>\n<p>\u3064\u307e\u308a\u30010\u304b\u3089\u306e\u958b\u767a\u3067\u306f\u306a\u304f\u3001\u65e2\u5b58\u306e\u30eb\u30fc\u30eb\u306e\u4e2d\u3067\u4f5c\u696d\u3059\u308b\u3068\u304d\u306f\u3001\u306a\u304b\u306a\u304b\u5384\u4ecb\u3060\u3063\u305f\u308a\u3057\u307e\u3059\u3088\u306d\u3002<\/p>\n<p>\u305d\u3057\u3066\u4eca\u56de\u306e\u30c6\u30fc\u30de\u3082\u540c\u3058\u304f\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u306eDB\u3067\u30ed\u30b0\u30a4\u30f3<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u3053\u3046\u306a\u308b\u3068DB\u30c6\u30fc\u30d6\u30eb\u306e\u69cb\u6210\u304c\u9055\u3046\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u65b0\u30b7\u30b9\u30c6\u30e0\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u306b\u4f7f\u3048\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3053\u3067\uff01<\/p>\n<p>\u4eca\u56de\u306f\u300c<strong>\u305f\u3063\u305f3\u30b9\u30c6\u30c3\u30d7<\/strong>\u300d\u3067\u65e2\u5b58DB\u30c6\u30fc\u30d6\u30eb\u3092\u4f7f\u3063\u305f\u30ed\u30b0\u30a4\u30f3\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u65b9\u306b\u304a\u5c4a\u3051\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0+Laravel\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u57fa\u790e\u304c\u77e5\u308a\u305f\u3044<\/li>\n<li>\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0+Laravel\u306e\u30ed\u30b0\u30a4\u30f3\u3092\u51fa\u6765\u308b\u3060\u3051\u7c21\u5358\u306b\u5b9f\u88c5\u3057\u305f\u3044<\/li>\n<li>\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0+Laravel\u306e\u30ed\u30b0\u30a4\u30f3\u3092\u306a\u3093\u306a\u3089\u30b3\u30d4\u30da\u3060\u3051\u3067\u6e08\u307e\u305b\u305f\u3044<\/li>\n<\/ul>\n<p>\u305c\u3072\u6700\u5f8c\u307e\u3067\u898b\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/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\" \/>\u300cTwitter\u306e\u8da3\u5473\u30a2\u30ab\u30a6\u30f3\u30c8\u3001<br \/>\n\u3044\u3044\u306d\u304c\u6700\u592740\u3050\u3089\u3044<br \/>\n\u3064\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff01\uff01\uff01\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 11.x<\/p>\n<h2>\u3010\u524d\u63d0\u3068\u3057\u3066\u3011Laravel\u3067\u65e2\u5b58\u306eDB\u8a8d\u8a3c\u3059\u308b\u74b0\u5883\u306b\u3064\u3044\u3066<\/h2>\n<h3>1. md5\u3067\u30cf\u30c3\u30b7\u30e5\u5316\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u60f3\u5b9a\u3057\u3066\u307e\u3059<\/h3>\n<p>\u30cf\u30c3\u30b7\u30e5\u5316\u3068\u306f\u5143\u306e\u6587\u5b57\u5217\u3092\u9055\u3046\u5f62\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u3067\u3059\u3002<br \/>\n\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u3082\u3057\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u76d7\u307f\u898b\u3089\u308c\u3066\u3082\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u63a8\u6e2c\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u4eca\u56de\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30cf\u30c3\u30b7\u30e5\u306b\u306f<code>md5<\/code>\u5f62\u5f0f\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001<code>md5<\/code>\u306e\u30cf\u30c3\u30b7\u30e5\u306f\u6bd4\u8f03\u7684\u63a8\u6e2c\u3057\u3084\u3059\u3044\u306e\u3067\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u80fd\u529b\u306f\u4f4e\u3044\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u306b\u306f<code>bcrypt<\/code>\u306a\u3069\u3001\u3088\u308a\u5f37\u56fa\u306a\u30cf\u30c3\u30b7\u30e5\u5316\u3092\u3059\u3079\u304d\u3067\u3059\u3002<\/p>\n<p>\u3010\u4f8b\u3011<code>password<\/code>\u3092\u30cf\u30c3\u30b7\u30e5\u5316\u3059\u308b\u3068\u3001<code>5f4dcc3b5aa765d61d8327deb882cf99<\/code>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>2. \u65e2\u5b58\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b<\/h3>\n<p>\u4eca\u56de\u306f\u3001\u4ee5\u4e0b\u30c6\u30fc\u30d6\u30eb\u3092\u65e2\u5b58\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3057\u3066\u4f5c\u696d\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12906\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_2.png\" alt=\"\" width=\"285\" height=\"240\" \/><\/p>\n<p>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306f\u3053\u3061\u3089\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12905\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_1.png\" alt=\"\" width=\"555\" height=\"297\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_1.png 555w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_1-300x161.png 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><\/p>\n<p>\u3082\u3057SQL\u6587\u3067\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u308a\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>DROP TABLE IF EXISTS `authUser`;<\/strong>\r\n<strong>CREATE TABLE `authUser` (<\/strong>\r\n<strong>`user_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,<\/strong>\r\n<strong>  `user_password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,<\/strong>\r\n<strong>  `user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,<\/strong>\r\n<strong>  `timestamp` int NOT NULL<\/strong>\r\n<strong>) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;<\/strong>\r\n\r\n<strong>INSERT INTO `authUser` (`user_id`, `user_password`, `user_name`, `timestamp`) VALUES<\/strong>\r\n<strong>('000001',  '5f4dcc3b5aa765d61d8327deb882cf99',    '\u5c71\u7530\u592a\u90ce',    1718742563),<\/strong>\r\n<strong>('000002',  '5f4dcc3b5aa765d61d8327deb882cf99',    '\u4f50\u85e4\u6b21\u90ce',    1718742563);<\/strong><\/pre>\n<\/div>\n<h3>3. <code>Laravel Breeze<\/code>\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b<\/h3>\n<p>\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\uff08<code>Laravel Breeze<\/code>\uff09\u306f\u5148\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4ee5\u4e0b3\u3064\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b8c\u4e86\u3067\u304d\u307e\u3059\u3002<\/p>\n<div>\n<pre><strong>composer require laravel\/breeze --dev<\/strong><\/pre>\n<div>\n<pre><strong>php artisan breeze:install<\/strong><\/pre>\n<div>\n<pre><strong>php artisan migrate<\/strong><\/pre>\n<\/div>\n<p>\u5ff5\u306e\u305f\u3081\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3082\u5b9f\u884c\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<p>\u3067\u306f\u3053\u3053\u304b\u30893\u30b9\u30c6\u30c3\u30d7\u306e\u958b\u59cb\u3067\u3059\u3002<br \/>\n\u7d30\u304b\u306a\u3068\u3053\u308d\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u6839\u672c\u306f\u30b7\u30f3\u30d7\u30eb\u306a\u306e\u3067\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<h2>\u3010\u30b9\u30c6\u30c3\u30d71\uff1a\u30e2\u30c7\u30eb\u3011Laravel\u304b\u3089\u65e2\u5b58\u30c6\u30fc\u30d6\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/h2>\n<p>\u65e2\u5b58\u30c6\u30fc\u30d6\u30eb\u306b\u65b0\u30b7\u30b9\u30c6\u30e0\uff08<code>Laravel<\/code>\uff09\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u540d\u524d\u306f\u300c<strong>OldUser<\/strong>\u300d\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:model OldUser<\/strong><\/pre>\n<\/div>\n<p>\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Models\/OldUser.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Models;<\/strong>\r\n\r\n<strong>use Carbon\\Carbon;<\/strong>\r\n<strong>use Illuminate\\Foundation\\Auth\\User as Authenticatable;<\/strong>\r\n\r\n<strong>class OldUser extends Authenticatable<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    protected $primaryKey = 'user_id';<\/strong>\r\n<strong>    protected $keyType = 'string';<\/strong>\r\n<strong>    protected $authPasswordName = 'user_password';<\/strong>\r\n<strong>    protected $connection = 'old_mysql';<\/strong>\r\n<strong>    protected $table = 'authUser';<\/strong>\r\n<strong>    protected $fillable = [<\/strong>\r\n<strong>        'timestamp',<\/strong>\r\n<strong>    ];<\/strong>\r\n<strong>    protected $hidden = [<\/strong>\r\n<strong>        'user_password',<\/strong>\r\n<strong>    ];<\/strong>\r\n<strong>    protected $appends = [<\/strong>\r\n<strong>        'id',<\/strong>\r\n<strong>        'name',<\/strong>\r\n<strong>        'created_at',<\/strong>\r\n<strong>        'updated_at',<\/strong>\r\n<strong>    ];<\/strong>\r\n\r\n<strong>    \/\/ Accessor<\/strong>\r\n<strong>    public function getIdAttribute() \/\/ $model-&gt;id<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return $this-&gt;user_id;<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function getNameAttribute() \/\/ $model-&gt;name<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return $this-&gt;user_name;<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function getCreatedAtAttribute() \/\/ $model-&gt;created_at<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return new Carbon($this-&gt;timestamp);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function getUpdatedAtAttribute() \/\/ $model-&gt;updated_at<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return new Carbon($this-&gt;timestamp);<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<p>\u91cd\u8981\u306a\u70b9\u306f2\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u65e2\u5b58\u30c6\u30fc\u30d6\u30eb\u306e\u30ab\u30e9\u30e0\u69cb\u9020\u3092\u30bb\u30c3\u30c8\u3059\u308b\uff08\u5dee\u3092\u5438\u53ce\u3059\u308b\uff09<\/li>\n<li>\u65e2\u5b58\u30c6\u30fc\u30d6\u30eb\u306b\u306f\u306a\u3044\u30ab\u30e9\u30e0\u3092Accessor\u3068\u3057\u3066\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b<\/li>\n<\/ul>\n<p>\u3010<code>Accessor<\/code>\u3068\u306f\u3011<\/p>\n<p>\u5143\u3005\u30c6\u30fc\u30d6\u30eb\u306b\u306f\u306a\u3044\u30ab\u30e9\u30e0\u3092\u64ec\u4f3c\u7684\u306b\u5b58\u5728\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u3059\u308b\u6a5f\u80fd\u3067\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u59d3\u540d\uff08first_name, last_name\uff09\u306e2\u30ab\u30e9\u30e0\u304c\u3042\u308b\u5834\u5408\u3001\u7d50\u5408\u3057\u3066<code>$user-&gt;full_name<\/code>\u3068\u3057\u3066\u53d6\u5f97\u3057\u305f\u308a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de<code>Accessor<\/code>\u3068\u3057\u3066\u8ffd\u52a0\u3057\u305f\u5024\u306f\u4ee5\u4e0b\u306e4\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>id\uff1a $user-&gt;id \u3068\u3057\u3066\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u307e\u3059<\/li>\n<li>name\uff1a $user-&gt;name<\/li>\n<li>created_at\uff1a $user-&gt;created_at<\/li>\n<li>updated_at\uff1a $user-&gt;updated_at<\/li>\n<\/ul>\n<\/div>\n<h2>\u3010\u30b9\u30c6\u30c3\u30d72\uff1a\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3011Laravel\u3067\u65e2\u5b58\u30c6\u30fc\u30d6\u30eb\u3068\u8abf\u6574\u3059\u308b\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u3064\u304f\u308b<\/h2>\n<h3>1. \u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u3064\u304f\u308b<\/h3>\n<p>\u7e70\u308a\u8fd4\u3057\u3067\u3059\u304c\u3001\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u3068<code>Laravel<\/code>\u306e\u30c6\u30fc\u30d6\u30eb\u69cb\u6210\u306f\u5225\u3067\u3059\u304b\u3089\u3001\u305d\u306e\u307e\u307e\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u5dee\u3092\u8abf\u6574\u3057\u3066\u304f\u308c\u308b\u5c02\u7528\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p>\u901a\u5e38\u306f<code>src\/Illuminate\/Auth\/EloquentUserProvider.php<\/code>\u304c\u4f7f\u308f\u308c\u307e\u3059\u304c\u3001\u65b0\u3057\u3044\u3082\u306e\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p><strong>app\/Providers\/CustomUserProvider.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Providers;<\/strong>\r\n\r\n<strong>use App\\Models\\OldUser;<\/strong>\r\n<strong>use Illuminate\\Contracts\\Auth\\UserProvider;<\/strong>\r\n<strong>use Illuminate\\Contracts\\Auth\\Authenticatable as UserContract;<\/strong>\r\n\r\n<strong>class CustomUserProvider implements UserProvider<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    private OldUser $model;<\/strong>\r\n\r\n<strong>    public function __construct()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $this-&gt;model = new OldUser();<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function retrieveById($identifier)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $primary_key = $this-&gt;model-&gt;getAuthIdentifierName();<\/strong>\r\n\r\n<strong>        return $this-&gt;model-&gt;where($primary_key, $identifier)-&gt;first(); \/\/ \u3053\u3053\u304c\u306a\u3044\u3068\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u3044<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function retrieveByToken($identifier, $token)<\/strong>\r\n<strong>    {}<\/strong>\r\n\r\n<strong>    public function updateRememberToken(UserContract $user, $token)<\/strong>\r\n<strong>    {}<\/strong>\r\n\r\n<strong>    public function retrieveByCredentials(array $credentials)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $primary_key = $this-&gt;model-&gt;getAuthIdentifierName();<\/strong>\r\n<strong>        $user_id = $credentials[$primary_key];<\/strong>\r\n\r\n<strong>        return $this-&gt;model-&gt;where($primary_key, $user_id)-&gt;first();<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function validateCredentials(UserContract $user, array $credentials)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $password_name = $this-&gt;model-&gt;getAuthPasswordName();<\/strong>\r\n<strong>        $plain = $credentials[$password_name];<\/strong>\r\n\r\n<strong>        return md5($plain) === $user-&gt;getAuthPassword(); \/\/ \u9001\u4fe1\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092md5\u3067\u30cf\u30c3\u30b7\u30e5\u5316\u3057\u3066\u6bd4\u8f03<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function rehashPasswordIfRequired(UserContract $user, array $credentials, bool $force = false)<\/strong>\r\n<strong>    {}<\/strong>\r\n<strong>}<\/strong><\/pre>\n<p>\u30c7\u30fc\u30bf\u53d6\u5f97\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u30fb\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30c8\u30fc\u30af\u30f3\u306f\u65e2\u5b58\u30c6\u30fc\u30d6\u30eb\u306b\u306f\u5b58\u5728\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u30b3\u30fc\u30c9\u304c\u7a7a\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u203b\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u7de8\u96c6\u30da\u30fc\u30b8\u306a\u3069\u3067\u5fc5\u8981\u306b\u306a\u308b\u304b\u3082\u2026\ud83e\udd14<\/p>\n<\/div>\n<h3>2. \u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u5b9a\u7fa9\u3059\u308b<\/h3>\n<p>\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306f\u3001<code>Laravel<\/code>\u304b\u3089\u3059\u308b\u3068\u5b58\u5728\u3057\u3066\u3044\u306a\u3044\u72b6\u614b\u3067\u3059\u306e\u3067\u3001<span style=\"font-size: 1rem;\">\u5b9a\u7fa9\u3092\u3057\u307e\u3057\u3087\u3046\u3002<\/span><\/p>\n<p><strong>app\/Providers\/AppServiceProvider.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Providers;<\/strong>\r\n\r\n<strong>use Illuminate\\Support\\ServiceProvider;<\/strong>\r\n<strong>use Illuminate\\Support\\Facades\\Auth;<\/strong>\r\n\r\n<strong>class AppServiceProvider extends ServiceProvider<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    \/**<\/strong>\r\n<strong>     * Register any application services.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function register(): void<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        \/\/<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Bootstrap any application services.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function boot(): void<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        Auth::provider('custom', function() {<\/strong>\r\n\r\n<strong>            return new CustomUserProvider();<\/strong>\r\n\r\n<strong>        });<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<h3>3. \u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u6709\u52b9\u306b\u3059\u308b<\/h3>\n<p>\u5148\u307b\u3069\u5b9a\u7fa9\u3092\u3057\u307e\u3057\u305f\u304c\u3001\u307e\u3060<code>CustomUserProvider<\/code>\u306f\u7121\u52b9\u306e\u307e\u307e\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6709\u52b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>config\/auth.php<\/strong><\/p>\n<div>\n<pre>\/\/ \u7701\u7565\r\n\r\n'providers' =&gt; [\r\n    <strong>'users' =&gt; [<\/strong>\r\n<strong>        'driver' =&gt; 'custom',<\/strong>\r\n<strong>        'model' =&gt; env('AUTH_MODEL', App\\Models\\OldUser::class),<\/strong>\r\n<strong>    ],<\/strong>\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<p>\u300ccustom\u300d\u3068\u3044\u3046\u90e8\u5206\u306f<code>AppServiceProvider<\/code>\u3067\u5b9a\u7fa9\u3057\u305f\u3082\u306e\u3067\u3059\u3002<br \/>\n\u304a\u597d\u307f\u3067\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<h2>\u3010\u30b9\u30c6\u30c3\u30d73\uff1a\u5404\u7a2e\u8a2d\u5b9a\u3011Laravel\u3067\u65e2\u5b58\u30c6\u30fc\u30d6\u30eb\u30fb\u30ed\u30b0\u30a4\u30f3\u306e\u8a2d\u5b9a\u3092\u3059\u308b<\/h2>\n<h3>1. \u65e2\u5b58\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u63a5\u7d9a\u60c5\u5831\u3092\u30bb\u30c3\u30c8\u3059\u308b<\/h3>\n<p>\u65e2\u5b58\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u63a5\u7d9a\u3059\u308b\u60c5\u5831\u304c\u5165\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u300c<strong>old_mysql<\/strong>\u300d\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><strong>config\/database.php<\/strong><\/p>\n<div>\n<pre>\/\/ \u7701\u7565\r\n\r\n'old_mysql' =&gt; [\r\n    'driver' =&gt; 'mysql',\r\n    'url' =&gt; null,\r\n    'host' =&gt; '127.0.0.1',\r\n    'port' =&gt; '3306',\r\n    'database' =&gt; 'old_system',\r\n    'username' =&gt; 'your-username',\r\n    'password' =&gt; 'your-password',\r\n    'unix_socket' =&gt; '',\r\n    'charset' =&gt; 'utf8mb4',\r\n    'collation' =&gt; 'utf8mb4_unicode_ci',\r\n    'prefix' =&gt; '',\r\n    'prefix_indexes' =&gt; true,\r\n    'strict' =&gt; true,\r\n    'engine' =&gt; null,\r\n    'options' =&gt; extension_loaded('pdo_mysql') ? array_filter([\r\n        PDO::MYSQL_ATTR_SSL_CA =&gt; env('MYSQL_ATTR_SSL_CA'),\r\n    ]) : [],\r\n],\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<p>\u203b\u306a\u304a\u3001\u672c\u6765\u306f<code>.env<\/code>\u306b\u66f8\u3044\u3066\u304a\u304f\u3079\u304d\u3067\u3059\u304c\u4eca\u56de\u306f\u30c6\u30b9\u30c8\u306a\u306e\u3067\u76f4\u66f8\u304d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n<h3>2. \u30ed\u30b0\u30a4\u30f3\u6642\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u8abf\u6574\u3059\u308b<\/h3>\n<p>\u901a\u5e38\u3001<code>Laravel<\/code>\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u304d\u306f\u4ee5\u4e0b2\u3064\u306e\u60c5\u5831\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/li>\n<li>\u30d1\u30b9\u30ef\u30fc\u30c9<\/li>\n<\/ul>\n<p>\u3057\u304b\u3057\u3001\u4eca\u56de\u306f\u4ee5\u4e0b2\u3064\u3067\u306e\u30ed\u30b0\u30a4\u30f3\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30e6\u30fc\u30b6\u30fcID<\/li>\n<li>\u30d1\u30b9\u30ef\u30fc\u30c9<\/li>\n<\/ul>\n<p>\u3068\u306a\u308b\u3068\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u300c\u30e1\u30fc\u30eb\u3058\u3083\u306a\u3044\u3068\u30c0\u30e1\uff01\u300d\u3068\u3044\u3046\u90e8\u5206\u304c\u4e0d\u8981\u306b\u306a\u308b\u306e\u3067\u3001\u9664\u53bb\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>app\/Http\/Requests\/Auth\/LoginRequest.php<\/strong><\/p>\n<div>\n<pre>\/\/ \u7701\u7565\r\n\r\npublic function rules(): array\r\n{\r\n    return [\r\n        <strong>'email' =&gt; ['required', 'string'], \/\/ \ud83d\udc48 email\u3092\u524a\u9664<\/strong>\r\n        'password' =&gt; ['required', 'string'],\r\n    ];\r\n}\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<\/div>\n<h3>3. \u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0\u3092\u8abf\u6574<\/h3>\n<p>\u3053\u308c\u306f\u5c0f\u3055\u306a\u90e8\u5206\u3067\u3059\u304c\u3001\u521d\u671f\u72b6\u614b\u3060\u3068\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>resources\/views\/auth\/login.blade.php<\/strong><\/p>\n<div>\n<pre>&lt;x-text-input id=\"email\" class=\"block mt-1 w-full\" type=\"<strong>email<\/strong>\" ...<\/pre>\n<p>\u3057\u304b\u3057\u3001\u3053\u308c\u3067\u306f@\u30de\u30fc\u30af\u3092\u5165\u529b\u3057\u306a\u3044\u3068\u9001\u4fe1\u3067\u304d\u306a\u3044\u5236\u7d04\u304c\u3042\u308b\u306e\u3067\u3001\u300ctext\u300d\u3078\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>resources\/views\/auth\/login.blade.php<\/strong><\/p>\n<div>\n<pre>&lt;x-text-input id=\"email\" class=\"block mt-1 w-full\" type=\"<strong>text<\/strong>\"<\/pre>\n<\/div>\n<\/div>\n<h2>\u3010\u5b9f\u884c\u30c6\u30b9\u30c8\u3011\u65e2\u5b58\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3082\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/h2>\n<p>\u3067\u306f\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<\/p>\n<h3>1. \u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b<\/h3>\n<p>\u300chttps:\/\/******\/login\u300d\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>2. \u9593\u9055\u3063\u305f\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3092\u9001\u4fe1\u3057\u3066\u307f\u308b<\/h3>\n<p>\u30c6\u30b9\u30c8\u3067\u3059\u306e\u3067\u9593\u9055\u3063\u305f\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3092\u9001\u4fe1\u3057\u3066\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u52b9\u3044\u3066\u3044\u308b\u304b\u78ba\u304b\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u60c5\u5831\u3092\u9001\u4fe1\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li>ID: test<\/li>\n<li>PW: testxxx<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12914\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_3.png\" alt=\"\" width=\"480\" height=\"305\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_3.png 480w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_3-300x191.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-12913\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_4.png\" alt=\"\" width=\"483\" height=\"330\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_4.png 483w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_4-300x205.png 300w\" sizes=\"auto, (max-width: 483px) 100vw, 483px\" \/><\/p>\n<p>\u60f3\u5b9a\u901a\u308a\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u305a\u3001\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<h3>3. \u6b63\u3057\u3044\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3092\u9001\u4fe1\u3059\u308b<\/h3>\n<p>\u6b21\u306b\u4ee5\u4e0b\u306e\u6b63\u3057\u3044\u60c5\u5831\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li>ID: 000001<\/li>\n<li>PW: password<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12912\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_5.png\" alt=\"\" width=\"481\" height=\"302\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_5.png 481w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_5-300x188.png 300w\" sizes=\"auto, (max-width: 481px) 100vw, 481px\" \/><\/p>\n<p>\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12911\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_6.png\" alt=\"\" width=\"640\" height=\"229\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_6.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_6-300x107.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u5f8c\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><code>Accessor<\/code>\u3092\u4f5c\u3063\u3066\u3044\u308b\u306e\u3067\u540d\u524d\u3082\u304d\u3061\u3093\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>4. \u30ed\u30b0\u30a2\u30a6\u30c8\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/h3>\n<p>\u6700\u5f8c\u306b\u30ed\u30b0\u30a2\u30a6\u30c8\u3082\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u30da\u30fc\u30b8\u53f3\u4e0a\u306b\u3042\u308b<code>Log out<\/code>\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12916\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_7.png\" alt=\"\" width=\"225\" height=\"146\" \/><\/p>\n<p>\u3046\u307e\u304f\u3044\u304f\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12915\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_8.png\" alt=\"\" width=\"640\" height=\"357\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_8.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/07\/laravel_auth_with_old_db_8-300x167.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u30ed\u30b0\u30a2\u30a6\u30c8\u3067\u304d\u3066\u3001<code>Laravel<\/code>\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306b\u79fb\u52d5\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3059\u3079\u3066\u6210\u529f\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<h2>\u3010\u3054\u63d0\u6848\u3011\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u3092\u7a3c\u50cd\u3057\u3066\u3044\u308b\u4f01\u696d\u69d8\u3078<\/h2>\n<p>\u3082\u3057\u304b\u3059\u308b\u3068\u3001\u4ee5\u4e0b3\u3064\u306e\u3088\u3046\u306a\u60a9\u307f\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u300c\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u304c\u3042\u308b\u3051\u3069\u3001\u53e4\u3044\u30b7\u30b9\u30c6\u30e0\u306a\u306e\u3067\u6539\u4fee\u304c\u3067\u304d\u306a\u3044\u300d<br \/>\n\u300c\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u306b\u65b0\u3057\u3044\u6a5f\u80fd\u304c\u307b\u3057\u3044\u3051\u3069\u3001\u6280\u8853\u8005\u304c\u3044\u306a\u3044\u300d<br \/>\n\u300c\u65b0\u30b7\u30b9\u30c6\u30e0\u3078\u79fb\u884c\u3057\u305f\u3044\u3051\u3069\u3001\u3084\u308a\u65b9\u304c\u308f\u304b\u3089\u306a\u3044\u300d<\/p>\n<p>\u7b54\u3048\u304c<code>Yes<\/code>\u3067\u3057\u305f\u3089\u3001\u4eca\u56de\u306e\u3088\u3046\u306b<code>Laravel<\/code>\u3068\u65e2\u5b58\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u9023\u643a\u3055\u305b\u3066\u65b0\u30b7\u30b9\u30c6\u30e0\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u305d\u3046\u3044\u3063\u305f\u3054\u5e0c\u671b\u304c\u3042\u308a\u307e\u3057\u305f\u3089\u3001\u305c\u3072\u304a\u554f\u3044\u5408\u308f\u305b\u304b\u3089\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002\u7121\u6599\u3067\u30aa\u30f3\u30e9\u30a4\u30f3\u9762\u8ac7\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n<p>\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\uff01\ud83d\ude0a\u2728<\/p>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u4eca\u56de\u306f\u65e2\u5b58\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u6700\u65b0<code>Laravel<\/code>\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u7279\u306b\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u306f\u7a3c\u50cd\u3057\u3066\u308b\u3051\u3069\u3001\u53e4\u3044\u30b7\u30b9\u30c6\u30e0\u306e\u5834\u5408\u306f\u958b\u767a\u8005\u304c\u9000\u8077\u3057\u3066\u3044\u305f\u308a\u3001\u3059\u3067\u306b\u6280\u8853\u8005\u81ea\u4f53\u304c\u5c11\u306a\u3044\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3093\u306a\u5834\u5408\u306f\u4eca\u56de\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u4f7f\u3048\u3070\u7c21\u5358\u306b\u30ed\u30b0\u30a4\u30f3\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u5c06\u6765\u7684\u306b\u300c<strong>\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0 + Laravel\u65b0\u30b7\u30b9\u30c6\u30e0<\/strong>\u300d\u306e\u958b\u767a\u304c\u3042\u3063\u3066\u3082\u4eca\u56de\u306e\u8a18\u4e8b\u3092\u4f7f\u3048\u3070\u3001\u6bd4\u8f03\u7684\u697d\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305c\u3072\u30d6\u30c3\u30af\u30de\u30fc\u30af\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u306d\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\u4eca\u65e5\u306f\u3086\u3063\u304f\u308a\u3067\u304d\u305d\u3046\u3060\u305e\uff01<br \/>\n\u304b\u3089\u306e\u6012\u6d9b\u306e\u30e1\u30fc\u30eb\u53d7\u4fe1<br \/>\n\u3063\u3066\u3042\u308b\u3042\u308b\u3067\u3059\u3088\u306d\ud83d\ude05\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\uff08\u6570\u3048\u3066\u306a\u3044\u3067\u3059\u304c\uff09\u6d3b\u52d5\u671f\u9593\u3092\u8003\u3048\u308b\u3068\u3001\u304a\u305d\u3089\u304f100\u56de\u4ee5\u4e0a\u306e\u6848\u4ef6\u3092\u3053\u306a\u3057\u3066\u304d\u307e\u3057\u305f\u3002 \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304c\u597d\u304d\u3060\u304b\u3089\u3001\u3069\u306e\u958b\u767a\u3082\u8208\u5473\u6df1\u3044\u3093\u3067\u3059\u3002 \u305f\u3060\u3001 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=12900\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u30103\u30b9\u30c6\u30c3\u30d7\u3067\u89e3\u6c7a\u3011Laravel\u304b\u3089\u65e2\u5b58\u30c6\u30fc\u30d6\u30eb\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u65b9\u6cd5&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":12928,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-12900","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\/12900","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=12900"}],"version-history":[{"count":19,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12900\/revisions"}],"predecessor-version":[{"id":12941,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12900\/revisions\/12941"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/12928"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}