{"id":8470,"date":"2021-01-11T07:00:41","date_gmt":"2021-01-10T22:00:41","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=8470"},"modified":"2021-01-01T00:48:34","modified_gmt":"2020-12-31T15:48:34","slug":"%e3%80%90laravel%e3%80%91qr%e3%82%b3%e3%83%bc%e3%83%89%e3%81%a7%e9%a7%90%e8%bb%8a%e4%bd%8d%e7%bd%ae%e3%83%bb%e8%a1%a8%e7%a4%ba%e3%82%b7%e3%82%b9%e3%83%86%e3%83%a0%e3%82%92%e3%81%a4%e3%81%8f%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=8470","title":{"rendered":"\u3010Laravel\u3011QR\u30b3\u30fc\u30c9\u3067\u99d0\u8eca\u4f4d\u7f6e\u30fb\u8868\u793a\u30b7\u30b9\u30c6\u30e0\u3092\u3064\u304f\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u3042\u308b\u8a18\u4e8b\u3092\u8aad\u3093\u3067\u300c\u9762\u767d\u305d\u3046\uff01\u300d\u3068\u3044\u3046\u601d\u3046\u5185\u5bb9\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">QR\u30b3\u30fc\u30c9\u3067\u99d0\u8eca\u30a8\u30ea\u30a2\u3092\u4fdd\u5b58\u3057\u3001\u5f8c\u3067\u305d\u308c\u304c\u3069\u3053\u3060\u3063\u305f\u304b\u304c\u5206\u304b\u308b<\/strong><\/p>\n<p>\u3068\u3044\u3046\u30b7\u30b9\u30c6\u30e0\u3067\u3057\u305f\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u5927\u304d\u306a\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u30bb\u30f3\u30bf\u30fc\u306b\u304a\u8cb7\u3044\u7269\u306b\u3044\u3063\u3066\u300c<strong>\u3042\u308c\u3001\u30a6\u30c1\u306e\u8eca\u3069\u3053\u306b\u505c\u3081\u305f\u3063\u3051\uff01\uff1f<\/strong>\u300d\u304c\u306a\u304f\u306a\u308b\u30b7\u30b9\u30c6\u30e0\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306d\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3093\u3067\u307f\u3066\u300c<strong>\u3078\u3047\u3001QR\u30b3\u30fc\u30c9\u306e\u3053\u3093\u306a\u4f7f\u3044\u65b9\u304c\u3042\u308b\u3093\u3060\uff01<\/strong>\u300d\u3068\u611f\u5fc3\u3059\u308b\u3068\u540c\u6642\u306b\u3001\u3069\u3046\u3057\u3066\u3082\u81ea\u5206\u3067\u4f5c\u3063\u3066\u307f\u305f\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f<code>Laravel<\/code>\u3092\u4f7f\u3063\u3066\u3053\u306e\u300c<strong>\u99d0\u8eca\u4f4d\u7f6e\u30fb\u4fdd\u5b58\u30b7\u30b9\u30c6\u30e0<\/strong>\u300d\u3092\u5b9f\u88c5\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u5b66\u7fd2\u306e\u304a\u5f79\u306b\u305f\u3066\u307e\u3059\u3068\u5b09\u3057\u3044\u3067\u3059\u3002\ud83d\ude0a\u2728<br \/>\n\uff08\u6700\u5f8c\u306b\u3001\u4eca\u56de\u5b9f\u969b\u306b\u958b\u767a\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3088\ud83d\udc4d\uff09<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3344 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22.png\" alt=\"\" width=\"320\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22.png 320w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22-150x150.png 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22-300x300.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22-100x100.png 100w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/>\u300c\u30da\u30fc\u30d1\u30fc\u30fb\u30c9\u30e9\u30a4\u30d0\u30fc\u3067\u3059 \ud83d\udcdd\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 8.x\u3001Vue 3<\/p>\n<h1><span style=\"font-size: 1.5rem;\">\u3084\u308a\u305f\u3044\u3053\u3068<\/span><\/h1>\n<p>\u4eca\u56de\u5b9f\u88c5\u3059\u308b\u306e\u306f\u3001\u4ee5\u4e0b\u306e\u6d41\u308c\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u99d0\u8eca\u3057\u305f\u30a8\u30ea\u30a2\u306b\u3042\u308bQR\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u53d6\u308b\uff08\uff1d \u30a8\u30ea\u30a2\u30c7\u30fc\u30bf\u3092\u30d6\u30e9\u30a6\u30b6\u306b\u4fdd\u5b58\uff09<\/li>\n<li>\uff08\u304a\u8cb7\u3044\u7269\u306b\u884c\u304f\uff09<\/li>\n<li>\u51fa\u53e3\u306b\u8a2d\u7f6e\u3055\u308c\u305fQR\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u53d6\u308b\u3068\u3001\u4fdd\u5b58\u30a8\u30ea\u30a2\u306b\u30de\u30fc\u30af\u304c\u3064\u3044\u305f\u5730\u56f3\u304c\u8868\u793a\u3055\u308c\u308b<\/li>\n<\/ol>\n<p>\u306a\u304a\u3001\u4eca\u56de\u30c6\u30b9\u30c8\u3067\u4f7f\u3046\u5730\u56f3\u306f\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8471\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_1.png\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_1.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_1-300x225.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u203b \u4eca\u56de\u306f\u30c6\u30b9\u30c8\u306a\u306e\u3067\u305f\u3063\u305f\uff14\u30a8\u30ea\u30a2\u3067\u3059\u304c\u3001\u5b9f\u969b\u306f\u3082\u3063\u3068\u305f\u304f\u3055\u3093\u3042\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u697d\u3057\u304f\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<h1>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u5148\u306b<code>PHP<\/code>\u3067<code>QR\u30b3\u30fc\u30c9<\/code>\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u300c<strong>php-qrcode<\/strong>\u300d\u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>composer require chillerlan\/php-qrcode<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001\u753b\u50cf\u3092\u64cd\u4f5c\u3067\u304d\u308b\u300c<strong>intervention<\/strong>\u300d\u3067\u3059\u3002<br \/>\n\u540c\u3058\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>composer require intervention\/image<\/strong><\/pre>\n<h1>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u7d9a\u3044\u3066\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nuse Illuminate\\Support\\Facades\\Route;\r\n<strong>use \\App\\Http\\Controllers\\ParkingController; \/\/ \ud83d\udc48 \u3053\u3053\u3082\u5fd8\u308c\u305a\uff01<\/strong>\r\n\r\n\/\/ \u7701\u7565\r\n\r\n<strong>Route::prefix('parking')-&gt;group(function(){<\/strong>\r\n\r\n<strong>    Route::get('\/qr_code\/{parking?}', [ParkingController::class, 'qr_code'])-&gt;name('parking.qr_code');<\/strong>\r\n<strong>    Route::get('\/show', [ParkingController::class, 'show'])-&gt;name('parking.show');<\/strong>\r\n\r\n<strong>});<\/strong><\/pre>\n<p>\uff11\u3064\u76ee\u306e\u30eb\u30fc\u30c8\u304cQR\u30b3\u30fc\u30c9\u3092\u8868\u793a\u3059\u308b\u30da\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001<code>{parking?}<\/code>\u3068\u30cf\u30c6\u30ca\u30de\u30fc\u30af\u304c\u3064\u3044\u3066\u3044\u308b\u306e\u306f\u3001\u300c<strong>\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u306a\u304f\u3066\u3082OK <\/strong><strong>\ud83d\udc4d<\/strong>\u300d\u306b\u3059\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306aURL\u304cOK\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>http:\/\/******\/parking\/qrcode\/1\u3000\uff1a\u6570\u5b57\u306fID\u3067\u53ef\u5909<\/li>\n<li>http:\/\/******\/parking\/qrcode\u3000\uff1a \u3053\u3063\u3061\u3082OK<\/li>\n<\/ul>\n<p>\u305d\u3057\u3066\u3001\uff12\u3064\u76ee\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u300c<strong>\u99d0\u8eca\u4f4d\u7f6e\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u3042\u308b or \u306a\u3044<\/strong>\u300d\u3067\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u52d5\u4f5c\u304c\u5909\u308f\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u3042\u308b\uff1a \u305d\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u30d6\u30e9\u30a6\u30b6\u3078\u4fdd\u5b58<\/li>\n<li>\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u306a\u3044\uff1a \u3059\u3067\u306b\u4fdd\u5b58\u3055\u308c\u305f\u30c7\u30fc\u30bf\u304b\u3089\u5730\u56f3\u3092\u8868\u793a<\/li>\n<\/ul>\n<h1>\u30e2\u30c7\u30eb\uff06\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u304f\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u3001\u30c7\u30fc\u30bf\u3092\u7ba1\u7406\u3059\u308b\u30e2\u30c7\u30eb\u3068\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\uff08DB\u30c6\u30fc\u30d6\u30eb\uff09\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/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:model Parking -m<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30e2\u30c7\u30eb\u3068\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>database\/migrations\/****_**_**_******_create_parkings_table.php<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\npublic function up()\r\n{\r\n    <strong>Schema::create('parkings', function (Blueprint $table) {<\/strong>\r\n<strong>        $table-&gt;id();<\/strong>\r\n<strong>        $table-&gt;string('name')-&gt;comment('\u30a8\u30ea\u30a2\u540d');<\/strong>\r\n<strong>        $table-&gt;integer('location_x')-&gt;comment('\u30a8\u30ea\u30a2\u4f4d\u7f6e\uff1aX\u8ef8');<\/strong>\r\n<strong>        $table-&gt;integer('location_y')-&gt;comment('\u30a8\u30ea\u30a2\u4f4d\u7f6e\uff1aY\u8ef8');<\/strong>\r\n<strong>        $table-&gt;timestamps();<\/strong>\r\n<strong>    });<\/strong>\r\n}\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<p>\u306a\u304a\u3001\u3053\u306e\u4e2d\u306e<code>location_x<\/code>\u3068<code>location_y<\/code>\u306f\u3001\u6700\u521d\u306b\u898b\u3066\u3082\u3089\u3063\u305f\u5730\u56f3\u753b\u50cf\u4e0a\u3067\u300c<strong>\u305d\u306e\u30a8\u30ea\u30a2\u304c\u3069\u3053\u306b\u3042\u308b\u306e\uff1f<\/strong>\u300d\u304c\u5206\u304b\u308b\u5ea7\u6a19\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5358\u4f4d\u306f\u30d4\u30af\u30bb\u30eb\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8471\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_1.png\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_1.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_1-300x225.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<h1>\u99d0\u8eca\u30a8\u30ea\u30a2\u306e\u60c5\u5831\u3092\u767b\u9332\u3059\u308b<\/h1>\n<p>\u305d\u3057\u3066\u3001DB\u30c6\u30fc\u30d6\u30eb\u300c<strong>parkings<\/strong>\u300d\u306b\u767b\u9332\u3059\u308b\u30c7\u30fc\u30bf\u3092\u3064\u304f\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067<code>Seeder<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:seed ParkingsTableSeeder<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>database\/seeders\/ParkingsTableSeeder.php<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\n<strong>public function run()<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    $areas = [<\/strong>\r\n<strong>        [<\/strong>\r\n<strong>            'name' =&gt; '\u30e9\u30a4\u30aa\u30f3\u30a8\u30ea\u30a2',<\/strong>\r\n<strong>            'location_x' =&gt; 160,<\/strong>\r\n<strong>            'location_y' =&gt; 265,<\/strong>\r\n<strong>        ],<\/strong>\r\n<strong>        [<\/strong>\r\n<strong>            'name' =&gt; '\u732b\u30a8\u30ea\u30a2',<\/strong>\r\n<strong>            'location_x' =&gt; 480,<\/strong>\r\n<strong>            'location_y' =&gt; 265,<\/strong>\r\n<strong>        ],<\/strong>\r\n<strong>        [<\/strong>\r\n<strong>            'name' =&gt; '\u3046\u3055\u304e\u30a8\u30ea\u30a2',<\/strong>\r\n<strong>            'location_x' =&gt; 160,<\/strong>\r\n<strong>            'location_y' =&gt; 410,<\/strong>\r\n<strong>        ],<\/strong>\r\n<strong>        [<\/strong>\r\n<strong>            'name' =&gt; '\u30d1\u30f3\u30c0\u30a8\u30ea\u30a2',<\/strong>\r\n<strong>            'location_x' =&gt; 480,<\/strong>\r\n<strong>            'location_y' =&gt; 410,<\/strong>\r\n<strong>        ],<\/strong>\r\n<strong>    ];<\/strong>\r\n\r\n<strong>    foreach ($areas as $area) {<\/strong>\r\n\r\n<strong>        $parking = new Parking();<\/strong>\r\n<strong>        $parking-&gt;name = $area['name'];<\/strong>\r\n<strong>        $parking-&gt;location_x = $area['location_x'];<\/strong>\r\n<strong>        $parking-&gt;location_y = $area['location_y'];<\/strong>\r\n<strong>        $parking-&gt;save();<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong>\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<p>\u7d9a\u3044\u3066\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u6709\u52b9\u306b\u306a\u308b\u3088\u3046\u306b<code>Laravel<\/code>\u306b\u767b\u9332\u3057\u307e\u3059\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    \/**\r\n     * Seed the application's database.\r\n     *\r\n     * @return void\r\n     *\/\r\n    public function run()\r\n    {\r\n\/\/        User::factory(10)-&gt;create();\r\n        <strong>$this-&gt;call(ParkingsTableSeeder::class); \/\/ \ud83d\udc48 \u3053\u3053\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f<\/strong>\r\n    }\r\n}<\/pre>\n<p>\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066DB\u30c6\u30fc\u30d6\u30eb\u3092\u69cb\u7bc9\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>php artisan migrate:fresh --seed<\/strong><\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u30c6\u30fc\u30d6\u30eb\u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8472\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_2.png\" alt=\"\" width=\"694\" height=\"342\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_2.png 694w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_2-300x148.png 300w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\" \/><\/p>\n<h1>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u6b21\u306b\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\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 make:controller ParkingController<\/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\u307e\u3059\u3002<\/p>\n<p><strong>app\/Http\/Controllers\/ParkingController.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\n<strong>use App\\Models\\Parking;<\/strong>\r\nuse chillerlan\\QRCode\\QRCode;\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass ParkingController extends Controller\r\n{\r\n    <strong>public function qr_code(Parking $parking) {<\/strong>\r\n\r\n<strong>        $url = route('parking.show', [<\/strong>\r\n<strong>            'x' =&gt; $parking-&gt;location_x,<\/strong>\r\n<strong>            'y' =&gt; $parking-&gt;location_y<\/strong>\r\n<strong>        ]);<\/strong>\r\n<strong>        $data = (new QRCode())-&gt;render($url);<\/strong>\r\n<strong>        return \\Image::make($data)-&gt;response();<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function show(Request $request) {<\/strong>\r\n\r\n<strong>        return view('parking.show')-&gt;with([<\/strong>\r\n<strong>            'x' =&gt; intval($request-&gt;x),<\/strong>\r\n<strong>            'y' =&gt; intval($request-&gt;y)<\/strong>\r\n<strong>        ]);<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u3084\u3063\u3066\u3044\u308b\u306e\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<h2><strong>qr_code()<\/strong><\/h2>\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3067QR\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u3084\u3063\u3066\u3044\u308b\u4e8b\u306f\u3001\u8a72\u5f53\u3059\u308bID\u756a\u53f7\u306e\u300c<strong>\u99d0\u8eca\u30a8\u30ea\u30a2\u30fb\u30c7\u30fc\u30bf<\/strong>\u300d\u3092\u53d6\u5f97\u3057\u3001\u305d\u306e\u4f4d\u7f6e\u60c5\u5831\u3092<code>x<\/code>\u3001<code>y<\/code>\u3068\u3057\u3066\u300c<strong>\/parking\/show<\/strong>\u300d\u306eURL\u306b\u542b\u3081\u3001\u305d\u308c\u3092QR\u30b3\u30fc\u30c9\u5316\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306aURL\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>http:\/\/******\/parking\/show?<strong>x=160&amp;y=410<\/strong><\/p>\n<h2><strong>show()<\/strong><\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001\uff12\u3064\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u8a73\u7d30\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u4f4d\u7f6e\u60c5\u5831\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u3042\u308b\u5834\u5408\uff1a \u305d\u306e\u30c7\u30fc\u30bf\u3092<code>localStorage<\/code>\u3078\u4fdd\u5b58<\/li>\n<li>\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u306a\u3044\u5834\u5408\uff1a \u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u99d0\u8eca\u30a8\u30ea\u30a2\u3092\u8868\u793a<\/li>\n<\/ul>\n<p>\u3064\u307e\u308a\u3001\u4e0a\u306e\u9805\u76ee\u304c\u99d0\u8eca\u3057\u305f\u76f4\u5f8c\u306b\u8aad\u307f\u53d6\u308bQR\u30b3\u30fc\u30c9\u3067\u3001\u4e0b\u304c\u99d0\u8eca\u4f4d\u7f6e\u3092\u63a2\u3059\u3068\u304d\u306eQR\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>resources\/views\/parking\/show.blade.php<\/strong><\/p>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;link rel=\"stylesheet\" href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.5.0\/css\/bootstrap.min.css\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div id=\"app\"&gt;\r\n    &lt;!-- \u99d0\u8eca\u3057\u305f\u30a8\u30ea\u30a2\u306e\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u5834\u5408 --&gt;\r\n    &lt;div v-if=\"mode=='save'\"&gt;\r\n        &lt;div class=\"p-3 text-center\" v-if=\"locationSaved\"&gt;\r\n            \u99d0\u8eca\u4f4d\u7f6e\u3092\u4fdd\u5b58\u3057\u307e\u3057\u305f\u3002\r\n        &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n    &lt;!-- \u99d0\u8eca\u3057\u305f\u30a8\u30ea\u30a2\u306e\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u5834\u5408 --&gt;\r\n    &lt;div id=\"canvas-box\" v-else-if=\"mode=='show'\"&gt;\r\n        &lt;canvas id=\"canvas\"&gt;&lt;\/canvas&gt;\r\n    &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;script src=\"https:\/\/unpkg.com\/vue@3.0.2\/dist\/vue.global.prod.js\"&gt;&lt;\/script&gt;\r\n&lt;script&gt;\r\n\r\n    Vue.createApp({\r\n        data() {\r\n            return {\r\n                location: {\r\n                    x: {{ $x }},\r\n                    y: {{ $y }},\r\n                },\r\n                locationSaved: false,\r\n                canvas: null,\r\n                context: null,\r\n                mapImage: null\r\n            }\r\n        },\r\n        methods: {\r\n            <strong>save() {\r\n\r\n                try {\r\n\r\n                    const parkingData = JSON.stringify(this.location);\r\n                    localStorage.setItem('parking_location', parkingData);\r\n                    this.locationSaved = true;\r\n\r\n                } catch (e) {\r\n\r\n                    console.log(e);\r\n                    alert('\u6b8b\u5ff5\u306a\u304c\u3089\u30d6\u30e9\u30a6\u30b6\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002');\r\n\r\n                }\r\n\r\n            },\r\n            show() {\r\n\r\n                this.context.drawImage(this.mapImage, 0, 0, this.canvas.width, this.canvas.height);\r\n\r\n                const parkingData = JSON.parse(\r\n                    localStorage.getItem('parking_location')\r\n                );\r\n                const parkingX = parkingData.x;\r\n                const parkingY = parkingData.y;\r\n                const radius = this.canvas.width * 0.085;\r\n                const x = this.canvas.width * parkingX \/ this.mapImage.width;\r\n                const y = this.canvas.height * parkingY \/ this.mapImage.height;\r\n                this.context.arc(x, y, radius, 0, 2 * Math.PI);\r\n                this.context.strokeStyle = '#ffff99';\r\n                this.context.lineWidth = 10;\r\n                this.context.stroke();\r\n\r\n            }<\/strong>\r\n        },\r\n        computed: {\r\n            <strong>mode() {\r\n\r\n                return (this.location.x &gt; 0 &amp;&amp; this.location.y &gt; 0)\r\n                    ? 'save'\r\n                    : 'show';\r\n\r\n            }<\/strong>\r\n        },\r\n        mounted() {\r\n\r\n            if(this.mode === 'save') {\r\n\r\n                this.save();\r\n\r\n            } else if(this.mode === 'show') {\r\n\r\n                <strong>this.mapImage = new Image;\r\n                this.mapImage.onload = () =&gt; {\r\n\r\n                    const canvasWidth = document.querySelector('#canvas-box').clientWidth;\r\n                    const canvasHeight = canvasWidth * this.mapImage.height \/ this.mapImage.width;\r\n                    this.canvas = document.querySelector('#canvas');\r\n                    this.canvas.width = canvasWidth;\r\n                    this.canvas.height = canvasHeight;\r\n                    this.context = this.canvas.getContext('2d');\r\n                    this.show();\r\n\r\n                };\r\n                this.mapImage.src = '\/images\/parking_map.png';<\/strong>\r\n\r\n            }\r\n\r\n        }\r\n    }).mount('#app');\r\n\r\n&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u3053\u306e\u30d3\u30e5\u30fc\u306f\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u72b6\u614b\u306b\u3088\u3063\u3066\u4ee5\u4e0b\uff12\u3064\u306e<code>mode<\/code>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>save\uff1a \u99d0\u8eca\u3057\u305f\u5834\u6240\u3092\u300c\u4fdd\u5b58\u300d\u3059\u308b<\/li>\n<li>show\uff1a \u99d0\u8eca\u3057\u305f\u5834\u6240\u3092\u300c\u8868\u793a\u300d\u3059\u308b<\/li>\n<\/ul>\n<p>\u3067\u306f\u3072\u3068\u3064\u305a\u3064\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>save\u30e2\u30fc\u30c9\u306e\u5834\u5408<\/h2>\n<p>\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u3059\u3050\u306b<code>save()<\/code>\u30e1\u30bd\u30c3\u30c9\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u4e2d\u3067\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u306e<code>localStorage<\/code>\u3078\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u5ff5\u306e\u305f\u3081<code>localStorage<\/code>\u304c\u4f7f\u3048\u306a\u3044\u30d6\u30e9\u30a6\u30b6\u306e\u3053\u3068\u3082\u8003\u3048\u3001<code>try ~ catch<\/code>\u3067\u4f8b\u5916\u51e6\u7406\u3092\u3064\u3051\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>show \u30e2\u30fc\u30c9\u306e\u5834\u5408<\/h2>\n<p>\u3053\u306e\u30e2\u30fc\u30c9\u306e\u5834\u5408\u3001\u3044\u308d\u3044\u308d\u3068\u3084\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u76ee\u7684\u306f\u300c<strong>\u6a2a\u5e45\u3044\u3063\u3071\u3044\u306b\u5730\u56f3\u3092\u8868\u793a\u3059\u308b<\/strong>\u300d\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u4eca\u56de\u306e\u5730\u56f3\u753b\u50cf\u306f<code>640 x 480 \u30d4\u30af\u30bb\u30eb<\/code>\u3067\u3059\u304c\u3001\u8868\u793a\u3059\u308b\u74b0\u5883\u306f\u305d\u308c\u305e\u308c\u9055\u3063\u3066\u304d\u307e\u3059\u306e\u3067\u3001<code>100\uff05<\/code>\u306e\u6a2a\u5e45\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u305d\u3046\u306a\u3063\u3066\u304f\u308b\u3068\u3001<code>location_x<\/code>\u3001<code>location_y<\/code>\u3068\u3057\u3066\u53d6\u5f97\u3057\u305f\u5024\u304c\u300c<strong>\u62e1\u5927 or \u7e2e\u5c0f<\/strong>\u300d\u3057\u3066\u3044\u308b\u5730\u56f3\u306b\u5bfe\u3057\u3066\u3001\u6b63\u3057\u3044\u4f4d\u7f6e\u3067\u306f\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4f4d\u7f6e\u3092\u300c\u5272\u5408\u300d\u306b\u3059\u308b\u3053\u3068\u3067\u3053\u308c\u3092\u89e3\u6c7a\u3057\u3066\u3044\u307e\u3059\u3002\uff08\u3053\u3046\u3044\u3046\u8a08\u7b97\u3063\u3066\u96e3\u3057\u3044\u3067\u3059\u3088\u306d\u30fb\u30fb\u30fb\ud83d\udca7\uff09<\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<br \/>\n\u306a\u304a\u3001\u5730\u56f3\u306f\u3053\u3046\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8471\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_1.png\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_1.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_1-300x225.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<h2>\u99d0\u8eca\u4f4d\u7f6e\u3092\u4fdd\u5b58\u3059\u308b\u30c6\u30b9\u30c8<\/h2>\n<p>\u307e\u305a\u306f\u300c<strong>\u30e9\u30a4\u30aa\u30f3\u30a8\u30ea\u30a2<\/strong>\u300d\u306b\u8eca\u3092\u505c\u3081\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u3084\u3063\u3066\u307f\u307e\u3059\u3002<br \/>\n\u30d6\u30e9\u30a6\u30b6\u3067\u300c<strong>http:\/\/******\/parking\/qr_code\/1<\/strong>\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8476\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_3.png\" alt=\"\" width=\"185\" height=\"185\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_3.png 185w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_3-150x150.png 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_3-100x100.png 100w\" sizes=\"auto, (max-width: 185px) 100vw, 185px\" \/><\/p>\n<p>QR\u30b3\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3053\u308c\u3092\u8aad\u307f\u53d6\u308a\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8477\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_4.png\" alt=\"\" width=\"236\" height=\"55\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u99d0\u8eca\u4f4d\u7f6e\u304c\u30d6\u30e9\u30a6\u30b6\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u672c\u5f53\u306blocalStorage\u306b\u4fdd\u5b58\u3055\u308c\u3066\u308b\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8488\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/laravel_parking_system_8.png\" alt=\"\" width=\"633\" height=\"124\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/laravel_parking_system_8.png 633w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/01\/laravel_parking_system_8-300x59.png 300w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/p>\n<p>\u307e\u305a\u306f\uff11\u6bb5\u968e\u76ee\u306f\u6210\u529f\u3067\u3059\u306d\ud83d\udc4d<\/p>\n<h2>\u99d0\u8eca\u4f4d\u7f6e\u3092\u8868\u793a\u3059\u308b\u30c6\u30b9\u30c8<\/h2>\n<p>\u305d\u3057\u3066\u3001\u6b21\u306f\u300c<strong>\u304a\u8cb7\u3044\u7269\u5f8c<\/strong>\u300d\u3092\u60f3\u5b9a\u3057\u3066\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u3064\u3051\u305a\u306bQR\u30b3\u30fc\u30c9\u30fb\u30da\u30fc\u30b8\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002URL\u306f\u3001\u300c<strong>http:\/\/******\/parking\/qr_code<\/strong>\u300d\u3067\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068\u3001\u307e\u305fQR\u30b3\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u518d\u5ea6\u8aad\u307f\u53d6\u3063\u3066\u30d6\u30e9\u30a6\u30b6\u3067\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8478\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_5.png\" alt=\"\" width=\"165\" height=\"165\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_5.png 165w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_5-150x150.png 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_5-100x100.png 100w\" sizes=\"auto, (max-width: 165px) 100vw, 165px\" \/><\/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-8479\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_6.png\" alt=\"\" width=\"345\" height=\"270\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_6.png 345w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_6-300x235.png 300w\" sizes=\"auto, (max-width: 345px) 100vw, 345px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u3046\u307e\u304f\u300c<strong>\u30e9\u30a4\u30aa\u30f3\u30a8\u30ea\u30a2<\/strong>\u300d\u306b\u25cb\u30de\u30fc\u30af\u304c\u3064\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<p>\u3067\u306f\u3001\u5ff5\u306e\u305f\u3081\u306b\u540c\u3058\u624b\u9806\u3067\u300c<strong>\u3046\u3055\u304e\u30a8\u30ea\u30a2<\/strong>\u300d\u3060\u3063\u305f\u5834\u5408\u3067\u3082\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u300chttp:\/\/******\/parking\/qr_code\/3\u300d\u3078\u30a2\u30af\u30bb\u30b9<\/li>\n<li>QR\u30b3\u30fc\u30c9\u8aad\u307f\u53d6\u308a\uff08\u99d0\u8eca\u4f4d\u7f6e\u3092\u4fdd\u5b58\uff09<\/li>\n<li>\u300chttp:\/\/******\/parking\/qr_code\u300d\u3078\u30a2\u30af\u30bb\u30b9<\/li>\n<li>QR\u30b3\u30fc\u30c9\u8aad\u307f\u53d6\u308a<\/li>\n<li>\u78ba\u8a8d<\/li>\n<\/ol>\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-8480\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_7.png\" alt=\"\" width=\"345\" height=\"270\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_7.png 345w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/12\/laravel_parking_system_7-300x235.png 300w\" sizes=\"auto, (max-width: 345px) 100vw, 345px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u4eca\u5ea6\u306f\u300c<strong>\u3046\u3055\u304e\u30a8\u30ea\u30a2<\/strong>\u300d\u306b\u25cb\u30de\u30fc\u30af\u304c\u3064\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u3061\u3089\u3082\u6210\u529f\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<h1>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h1>\n<p>\u4ee5\u4e0b\u304b\u3089\u4eca\u56de\u5b9f\u969b\u306b\u958b\u767a\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/blog.capilano-fw.com?download=8481&amp;tmstv=1777539629\" rel=\"nofollow\" id=\"download-link-8481\" data-redirect=\"false\" >\n\t\u3010Laravel\u3011QR\u30b3\u30fc\u30c9\u3067\u99d0\u8eca\u4f4d\u7f6e\u30fb\u8868\u793a\u30b7\u30b9\u30c6\u30e0\u3092\u3064\u304f\u308b<\/a>\n\n<p>\u203b \u305f\u3060\u3057\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306f\u3054\u81ea\u8eab\u3067\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u203b \u307e\u305f\u3001\u5730\u56f3\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u30a4\u30e9\u30b9\u30c8\u306f\u30d5\u30ea\u30fc\u30e9\u30a4\u30bb\u30f3\u30b9\u3067\u516c\u958b\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u3053\u306e\u4e2d\u306b\u306f\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u30c6\u30b9\u30c8\u3059\u308b\u5834\u5408\u306f\u3001\u3053\u306e\u30da\u30fc\u30b8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306fQR\u30b3\u30fc\u30c9\u3092\u4f7f\u3063\u305f\u300c<strong>\u99d0\u8eca\u4f4d\u7f6e\u30b7\u30b9\u30c6\u30e0<\/strong>\u300d\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u4eca\u56de\u306f\u99d0\u8eca\u4f4d\u7f6e\u3092\u8868\u793a\u3059\u308b\u3060\u3051\u3067\u3057\u305f\u304c\u3001\u5f53\u521d\u306f\u300c<strong>\u73fe\u5728\u5730\u304b\u3089\u3069\u3046\u884c\u3051\u3070\u305d\u306e\u30a8\u30ea\u30a2\u306b\u5230\u7740\u3067\u304d\u308b\u304b\uff1f<\/strong>\u300d\u3068\u3044\u3046\uff12\u5730\u70b9\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3042\u307e\u308a\u306b\u3082\u8907\u96d1\u306b\u306a\u308a\u305d\u3046\u3067\u65ad\u5ff5\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\uff08\u307e\u305f\u3001\uff12\u968e\u30fb\uff13\u968e\u306a\u3069\u306e\u60c5\u5831\u3082\u6271\u3063\u3066\u307f\u305f\u304b\u3063\u305f\u3093\u3067\u3059\u304c\u30fb\u30fb\u30fb\u305d\u308c\u3082\u3084\u3063\u3061\u3083\u3046\u3068\u5b66\u7fd2\u306b\u306f\u4e0d\u5411\u304d\u306b\u306a\u308b\u3068\u3044\u3046\u7d50\u8ad6\u306b\u306a\u308a\u3001\u3053\u308c\u3082\u3084\u3081\u307e\u3057\u305f\ud83d\ude05\uff09<\/p>\n<p>\u3068\u306f\u3044\u3048\u3001\u57fa\u672c\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u3044\u308d\u3044\u308d\u62e1\u5f35\u304c\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u8a66\u3057\u3066\u898b\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-3467 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png\" alt=\"\" width=\"216\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png 216w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9-203x300.png 203w\" sizes=\"auto, (max-width: 216px) 100vw, 216px\" \/>\u300c\u3048\u3063\u3001\u30ab\u30d3\u30ad\u30e9\u30fc\u3063\u3066\u3001<br \/>\n\u3053\u3093\u306a\u843d\u3061\u308b\u3093\u3067\u3059\u306d\ud83d\ude33\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u3042\u308b\u8a18\u4e8b\u3092\u8aad\u3093\u3067\u300c\u9762\u767d\u305d\u3046\uff01\u300d\u3068\u3044\u3046\u601d\u3046\u5185\u5bb9\u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u305d\u308c\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb QR\u30b3\u30fc\u30c9\u3067\u99d0\u8eca\u30a8\u30ea\u30a2\u3092\u4fdd\u5b58\u3057\u3001\u5f8c\u3067\u305d\u308c\u304c\u3069\u3053\u3060\u3063\u305f\u304b\u304c\u5206\u304b\u308b  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=8470\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010Laravel\u3011QR\u30b3\u30fc\u30c9\u3067\u99d0\u8eca\u4f4d\u7f6e\u30fb\u8868\u793a\u30b7\u30b9\u30c6\u30e0\u3092\u3064\u304f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":8486,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-8470","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\/8470","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=8470"}],"version-history":[{"count":7,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8470\/revisions"}],"predecessor-version":[{"id":8489,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8470\/revisions\/8489"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/8486"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}