{"id":10081,"date":"2022-03-07T07:00:48","date_gmt":"2022-03-06T22:00:48","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=10081"},"modified":"2022-02-19T01:50:59","modified_gmt":"2022-02-18T16:50:59","slug":"laravel-%e3%81%ae%e7%8b%ac%e8%87%aa%e3%83%91%e3%83%83%e3%82%b1%e3%83%bc%e3%82%b8%e3%82%92%e8%a4%87%e6%95%b0%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%81%a7%e7%ae%a1%e7%90%86%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=10081","title":{"rendered":"Laravel \u306e\u72ec\u81ea\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8907\u6570\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u7ba1\u7406\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u8a18\u4e8b\u3067\u306f\u4e45\u3057\u3076\u308a\u306b<code>Laravel<\/code>\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u300c<a href=\"https:\/\/github.com\/SUKOHI\/laravel-js-helper\" target=\"_blank\" rel=\"noopener\">laravel-js-helper<\/a>\u300d\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u5b9f\u306f\u5c11\u3057\u524d\u307e\u3067\u3088\u304f<code>Laravel<\/code>\u306e\u72ec\u81ea\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u3064\u304f\u3063\u3066\u516c\u958b\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u6700\u8fd1\u306f\u3042\u307e\u308a\u300c<strong>\u6c17\u4e57\u308a\u304c\u3057\u306a\u3044<\/strong>\u300d\u3068\u3044\u3046\u304b\u3001\u306a\u3093\u3068\u306a\u304f\u907f\u3051\u3066\u3044\u308b\u90e8\u5206\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u300c\u3042\u3093\u306a\u306b\u597d\u304d\u3060\u3063\u305f\u306e\u306b\u306a\u305c\u3060\u308d\u3046\u2753\u300d<\/p>\n<p>\u3068\u8003\u3048\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u5ea6\u305d\u306e\u7406\u7531\u3092\u7a81\u304d\u6b62\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u305d\u306e\u7406\u7531\u3068\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">\u300c\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u3081\u3093\u3069\u3046\u2026\ud83d\ude23\u300d<\/strong><\/p>\n<p>\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001<code>Laravel<\/code>\u306b\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8ffd\u52a0\u306b\u306a\u308b\u3068\u305d\u306e\u90fd\u5ea6\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u3054\u3068\u306b\u958b\u767a\u74b0\u5883\u3092\u3064\u304f\u3089\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u300c<strong>\u3046\u30fc\u3093\u3001\u4ed5\u4e8b\u3058\u3083\u306a\u3044\u3057\u3001\u3001\u5f8c\u3067\u306d\u2026<\/strong>\u300d\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f\u3001\u300c<strong>\uff11\u3064\u306e\u30d5\u30a9\u30eb\u30c0\u3067\u8907\u6570\u30d0\u30fc\u30b8\u30e7\u30f3\u5411\u3051\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u958b\u767a<\/strong>\u300d\u3092\u3059\u308b\u65b9\u6cd5\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u305c\u3072\u4f55\u304b\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\u3002\ud83d\ude04\u2728<\/p>\n<p>\u203b \u4eca\u56de\u306f\u3055\u3059\u304c\u306b\u9700\u8981\u304c\u5c11\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u305c\u3072\u4e00\u6d41\u30d4\u30c3\u30c1\u30e3\u30fc\u304c\u3088\u304f\u3084\u308b\u300c<strong>\u7de9\u6025\u3092\u3064\u3051\u305f\u30d4\u30c3\u30c1\u30f3\u30b0<\/strong>\u300d\u3060\u3068\u304a\u8003\u3048\u304f\u3060\u3055\u3044\u3002\u305d\u306e\u3046\u3061\u8c6a\u901f\u7403\u30b9\u30c8\u30ec\u30fc\u30c8\u6295\u3052\u307e\u3059\u306d\uff08\u7b11\uff09<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9809 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/11\/no_9.png\" alt=\"\" width=\"370\" height=\"220\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/11\/no_9.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/11\/no_9-300x178.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/>\u300c\u30ef\u30f3\u30a4\u30f3\u30c1\u30d1\u30f3\u30c1\u304c<br \/>\n\u6253\u3066\u308b\u3088\u3046\u306b\u306a\u308a\u305f\u3044\u2757\u300d<\/p>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p>\u4eca\u56de\u306f\u5b9f\u969b\u306e\u4f8b\u3068\u3057\u3066\u3001\u4ee5\u4e0b\uff14\u3064\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u5411\u3051\u3066\u3001\uff11\u3064\u306e\u30d5\u30a9\u30eb\u30c0\u3060\u3051\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>Laravel 6.x<\/li>\n<li>Laravel 7.x<\/li>\n<li>Laravel 8.x<\/li>\n<li>Laravel 9.x<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u30b5\u30f3\u30d7\u30eb\u3068\u3057\u3066\u3068\u308a\u3042\u3052\u308b\u306e\u306f\u524d\u56de\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f\u300c<a href=\"https:\/\/github.com\/SUKOHI\/laravel-js-helper\" target=\"_blank\" rel=\"noopener\">laravel-js-helper<\/a>\u300d\u3067\u3059\u304c\u3001\u3082\u3061\u308d\u3093\u81ea\u7531\u306b\u3054\u81ea\u8eab\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u306b\u7f6e\u304d\u63db\u3048\u3066OK\u3067\u3059\u3002<\/p>\n<p>\u203b \u306a\u304a\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c\u30d1\u30c3\u30b1\u30fc\u30b8\u672c\u4f53\u306e\u3064\u304f\u308a\u304b\u305f\u300d\u306f\u66f8\u3044\u3066\u307e\u305b\u3093\u3002\u30b4\u30e1\u30f3\u30ca\u30b5\u30a4\u3002\u3082\u3057\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u3001\u305d\u306e\u6614\u5225\u30d6\u30ed\u30b0\u3067\u66f8\u3044\u305f<a href=\"https:\/\/sukohi.blogspot.com\/2015\/08\/laravel-5.html\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u4eca\u3067\u3082\u57fa\u672c\u306f\u540c\u3058\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u2757<\/p>\n<h1>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u305f\u3081\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u7528\u610f\u3059\u308b<\/h1>\n<p>\u307e\u305a\u306f\u3001\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u3067\u3059\u3002<\/p>\n<p>\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u306b\u5404<code>Laravel<\/code>\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u3068\u300c<strong>\u4e26\u5217\u306e\u4f4d\u7f6e<\/strong>\u300d\u306b\u300c<strong>packages<\/strong>\u300d\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10092\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/02\/larvel_package_development_1.png\" alt=\"\" width=\"608\" height=\"283\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/02\/larvel_package_development_1.png 608w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/02\/larvel_package_development_1-300x140.png 300w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e<code>packages<\/code>\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306b\u5b9f\u969b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u304c\u3064\u3044\u305f\u30d5\u30a9\u30eb\u30c0\u3092\u7528\u610f\u3057\u307e\u3059\u3002\uff08\u4eca\u56de\u306e\u4f8b\u306f\u300c<strong>laravel-js-helper<\/strong>\u300d\u306b\u306a\u308a\u307e\u3059\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10093\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/02\/larvel_package_development_2.png\" alt=\"\" width=\"192\" height=\"151\" \/><\/p>\n<p>\u3064\u307e\u308a\u3001\u968e\u5c64\u3067\u8a00\u3046\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u958b\u767a\u30d5\u30a9\u30eb\u30c0<\/strong><br \/>\n\u2514\u00a0 laravel6x<br \/>\n\u2514\u00a0 laravel7x<br \/>\n\u2514\u00a0 laravel8x<br \/>\n\u2514\u00a0 laravel9x<br \/>\n<strong>\u2514\u00a0 packages<\/strong><br \/>\n<strong>\u3000\u3000\u2514\u00a0 laravel-js-helper\u00a0<\/strong><\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u307e\u307e\u3067\u306f\u5404<code>Laravel<\/code>\u30d5\u30a9\u30eb\u30c0\u304b\u3089<code>packages<\/code>\u30d5\u30a9\u30eb\u30c0\u3092\u53c2\u7167\u3067\u304d\u306a\u3044\u306e\u3067\u300c<strong>\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30fb\u30ea\u30f3\u30af<\/strong>\u300d\u3092\u8cbc\u308a\u300c<strong>\u3042\u305f\u304b\u3082\u305d\u3053\u306b\u5b58\u5728\u3057\u3066\u3044\u308b\u3088\u3046\u306b<\/strong>\u300d\u3057\u307e\u3059\u3002<\/p>\n<p>\u79c1\u306e\u74b0\u5883\u306f<code>Ubuntu<\/code>\u306a\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><strong>ln -s \/\uff08\u958b\u767a\u30d5\u30a9\u30eb\u30c0\uff09\/laravel9x\/packages packages<\/strong><\/pre>\n<p>\u203b <code>windows<\/code>\u3067\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30fb\u30ea\u30f3\u30af\u3092\u4f7f\u3046\u65b9\u6cd5\u306f\u4ee5\u4e0b\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002\uff08\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3055\u3093\u306f\u30db\u30f3\u30c8\u6709\u76ca\u30da\u30fc\u30b8\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u306d \ud83d\udc4d\uff09<\/p>\n<p><strong>\ud83d\udcdd \u53c2\u8003\u30da\u30fc\u30b8\uff1a<\/strong> <a href=\"https:\/\/dev.classmethod.jp\/articles\/make_windows_symbolic_link\/\" target=\"_blank\" rel=\"noopener\">Windows\u3067\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u4f5c\u308b<\/a><\/p>\n<p>\u3059\u308b\u3068\u3001<code>Laravel9x<\/code>\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u300c<strong>packages \u30d5\u30a9\u30eb\u30c0\u304c\u5b58\u5728\u3057\u3066\u3044\u308b<\/strong>\u300d\u3053\u3068\u306b\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10095\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/02\/larvel_package_development_3.png\" alt=\"\" width=\"377\" height=\"264\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/02\/larvel_package_development_3.png 377w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/02\/larvel_package_development_3-300x210.png 300w\" sizes=\"auto, (max-width: 377px) 100vw, 377px\" \/><\/p>\n<p>\u5f8c\u306f\u3001\u6b8b\u308a\u306e\u300c<strong>laravel8x<\/strong>\u300d\u300c<strong>laravel7x<\/strong>\u300d\u300c<strong>laravel6x<\/strong>\u300d\u30d5\u30a9\u30eb\u30c0\u306b\u3082\u540c\u3058\u304f\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30fb\u30ea\u30f3\u30af\u3092\u8cbc\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\u203b \u3061\u306a\u307f\u306b\u3001\u5f8c\u3067\u7d39\u4ecb\u3059\u308b\u300c<strong>\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8<\/strong>\u300d\u304c\u3067\u304d\u308b\u3088\u3046\u3001\u3042\u3048\u3066\u3053\u306e\u4f4d\u7f6e\u306b\u30ea\u30f3\u30af\u3092\u3064\u304f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u5143\u7ba1\u7406\u3067\u304d\u308b\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u306b\u306a\u308a\u307e\u3057\u305f\u2757<\/p>\n<h1>composer \u3067\u30ed\u30fc\u30ab\u30eb\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/h1>\n<p><code>Laravel<\/code>\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f<code>composer<\/code>\u3067\u7ba1\u7406\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u3044\u3061\u3044\u3061<code>GitHub<\/code>\u306b\u4e0a\u3052\u3066<code>Packagist<\/code>\u306b\u53cd\u6620\u3055\u308c\u308b\u306e\u3092\u5f85\u3063\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u2026\u3068\u306a\u308b\u3068\u3044\u304f\u3089\u6642\u9593\u304c\u3042\u3063\u3066\u3082\u8db3\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p><code>composer.json<\/code>\u3092\u3044\u3058\u3063\u3066\u3001<strong>\u300c\u30ed\u30fc\u30ab\u30eb\u306b\u7f6e\u3044\u3066\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/strong><\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>composer.json<\/strong><\/p>\n<pre><strong>\/\/ \u7701\u7565\r\n\r\n\"repositories\": [\r\n    {\r\n        \"type\": \"path\",\r\n        \"url\": \"packages\/your-package-name\"\r\n    }\r\n],<\/strong><\/pre>\n<p>\u203b\u300c<strong>your-package-name<\/strong>\u300d\u306f\u81ea\u7531\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u30ed\u30fc\u30ab\u30eb\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>composer require \"sukohi\/laravel-js-helper @dev\"<\/strong><\/pre>\n<p>\u306a\u304a\u3001\u4e00\u5ea6\u30ed\u30fc\u30ab\u30eb\u304b\u3089\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u305d\u306e\u90fd\u5ea6<strong>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u304f\u3066\u3082\u5909\u66f4\u304c\u30c0\u30a4\u30ec\u30af\u30c8\u3067\u53cd\u6620\u3055\u308c\u307e\u3059<\/strong>\u3002\u4fbf\u5229\u3067\u3059\u306d\ud83d\udc4d<\/p>\n<h1>\u30d1\u30c3\u30b1\u30fc\u30b8\u5185\u306e\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u304c\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/h1>\n<p>\u8907\u6570\u30d0\u30fc\u30b8\u30e7\u30f3\u5411\u3051\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u3064\u304f\u308b\u5834\u5408\u3001\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u304c\u3042\u308c\u3070\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u3046\u307e\u304f\u3044\u3063\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3067\u304d\u3001\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u3053\u3053\u3067\u306f\u300c<strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u5185\u306b\u3042\u308b<\/strong>\u300d\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u304c\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046<code>composer.json<\/code>\u3092\u5909\u66f4\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>composer.json<\/strong><\/p>\n<pre>\"autoload-dev\": {\r\n    \"psr-4\": {\r\n        \"Tests\\\\\": \"tests\/\",\r\n        <strong>\"Vendor\\\\YourPackageName\\\\Tests\\\\\": \"packages\/your-package-name\/tests\/\"<\/strong>\r\n    }\r\n},<\/pre>\n<p>\u203b \u300c<strong>Vendor<\/strong>\u300d\u3001\u300c<strong>YourPackageName<\/strong>\u300d\u3001\u305d\u3057\u3066\u300c<strong>your-package-name<\/strong>\u300d\u306f\u81ea\u7531\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001<code>phpunit.xml<\/code>\u3078\u30d1\u30c3\u30b1\u30fc\u30b8\u5185\u306b\u3042\u308b\u30c6\u30b9\u30c8\u30fb\u30d5\u30a9\u30eb\u30c0\u3092\u6307\u5b9a\u3059\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p><strong>phpunit.xml<\/strong><\/p>\n<pre>&lt;!-- \u7701\u7565 --&gt;\r\n\r\n&lt;testsuites&gt;\r\n    &lt;testsuite name=\"Unit\"&gt;\r\n        &lt;directory suffix=\"Test.php\"&gt;.\/tests\/Unit&lt;\/directory&gt;\r\n    &lt;\/testsuite&gt;\r\n    &lt;testsuite name=\"Feature\"&gt;\r\n        &lt;directory suffix=\"Test.php\"&gt;.\/tests\/Feature&lt;\/directory&gt;\r\n    &lt;\/testsuite&gt;\r\n    &lt;!-- \ud83d\udc47 \u3053\u3053\u3092\u8ffd\u52a0 --&gt;\r\n    <strong>&lt;testsuite name=\"YourPackageNameFeature\"&gt;<\/strong>\r\n<strong>        &lt;directory suffix=\"Test.php\"&gt;.\/packages\/your-package-name\/tests\/Feature&lt;\/directory&gt;<\/strong>\r\n<strong>    &lt;\/testsuite&gt;<\/strong>\r\n&lt;\/testsuites&gt;\r\n\r\n&lt;!-- \u7701\u7565 --&gt;<\/pre>\n<p>\u3053\u308c\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u6e96\u5099\u3082\u5b8c\u4e86\u3067\u3059\u2757<\/p>\n<h1>\u5b9f\u969b\u306b\u3084\u3063\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u304c\u3046\u307e\u304f\u3044\u3063\u3066\u3044\u308b\u304b\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\uff08\u4ee5\u4e0b\u306f\u3001\u524d\u56de\u8a18\u4e8b\u3067\u3064\u304f\u3063\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u300c<strong>laravel-js-helper<\/strong>\u300d\u306e\u3082\u306e\u3067\u3059\uff09<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u306f\u3001<code>php artisan test<\/code>\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10096\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/02\/larvel_package_development_4.png\" alt=\"\" width=\"567\" height=\"197\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/02\/larvel_package_development_4.png 567w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/02\/larvel_package_development_4-300x104.png 300w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u3046\u307e\u304f\u30d1\u30c3\u30b1\u30fc\u30b8\u5185\u306e\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u6210\u529f\u3067\u3059 \ud83d\ude04\u2728<\/p>\n<p>\u203b \u306a\u304a\u3001<code>Laravel 6.x<\/code>\u306b\u306f<code>php artisan test<\/code>\u306f\u306a\u3044\u306e\u3067\u3001<code>.\/vendor\/bin\/phpunit<\/code>\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u306e\u3088\u3046\u306b\u3001\u72ec\u81ea\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u3064\u304f\u3063\u3066\u304a\u304f\u3068\u8907\u6570\u30b5\u30a4\u30c8\u3067\u300c<strong>\u30b3\u30fc\u30c9\u306e\u518d\u5229\u7528<\/strong>\u300d\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u72ec\u81ea\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<ul>\n<li>\u5fa1\u793e\u304c\u72ec\u81ea\u3067\u4f7f\u3063\u3066\u3044\u308b\u300c\u8acb\u6c42\u66f8\u300d\u3084\u300c\u5546\u54c1\u300d\u306e\u72ec\u81ea\u63a1\u756a\u3057\u3066\u3044\u308b ID \u3092\u7c21\u5358\u306b\u53d6\u5f97\u3067\u304d\u308b\u30d1\u30c3\u30b1\u30fc\u30b8<\/li>\n<li>\u793e\u5185\u3067\u7d71\u4e00\u3055\u308c\u305f\u9818\u53ce\u66f8\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u4f7f\u3063\u3066 PDF \u3092\u4f5c\u6210\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8<\/li>\n<li>\u5404\u30b5\u30a4\u30c8\u3067\u5fc5\u8981\u306b\u306a\u308b\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u30fb\u30dd\u30ea\u30b7\u30fc\u3084\u5229\u7528\u898f\u7d04\u3092\u5171\u901a\u5316\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8<\/li>\n<\/ul>\n<p>\u203b \u306a\u304a\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306f<code>GitHub<\/code>\u3067\u975e\u516c\u958b\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u793e\u5185\u5c02\u7528\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u203b \u305f\u3060\u3057\u3001\u3042\u307e\u308a\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9055\u3046\u3068\u4f9d\u5b58\u95a2\u4fc2\u3067\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3059<\/p>\n<p>\u3082\u3057\u3054\u8208\u5473\u304c\u3042\u308b\u3088\u3046\u3067\u3057\u305f\u3089\u3001\u305c\u3072\u4e00\u5ea6\u304a\u554f\u3044\u5408\u308f\u305b\u304b\u3089\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<br \/>\n\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\u3002\ud83d\ude04\u2728<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u4eca\u56de\u306f\u300c<strong>\u307f\u306a\u3055\u3093\u306e\u9700\u8981\u5ea6\u5916\u8996 \ud83d\ude02<\/strong>\u300d\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8907\u6570\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u958b\u767a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><code>Laravel<\/code>\u306b\u9650\u3089\u305a\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u958b\u767a\u306f\u3042\u307e\u308a\u8a71\u984c\u306b\u306a\u3089\u306a\u3044\u6c17\u304c\u3057\u307e\u3059\uff08\u2026\u3068\u3044\u3046\u3053\u3068\u306f\u30cb\u30c3\u30c1\u7523\u696d !?\uff09\u304c\u3001\u72ec\u81ea\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u3064\u304f\u3063\u3066\u304a\u3051\u3070\u958b\u767a\u306e\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u72ec\u81ea\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u3064\u304f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002\uff08\u304b\u3063\u3053\u3044\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u304c\u601d\u3044\u6d6e\u304b\u3093\u3060\u3089\u30e2\u30c1\u30d9\u30fc\u30b7\u30e7\u30f3\u3055\u3089\u306b\u4e0a\u304c\u308a\u307e\u3059\u3088\ud83d\udc4d\uff09<\/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-3566 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png\" alt=\"\" width=\"306\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png 306w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1-287x300.png 287w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/>\u300c\u6614\u306f\u4e2d\u4e8c\u75c5\u3063\u307d\u3044<br \/>\n\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u3064\u3051\u3066\u307e\u3057\u305f\ud83d\ude05\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u8a18\u4e8b\u3067\u306f\u4e45\u3057\u3076\u308a\u306bLaravel\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u300claravel-js-helper\u300d\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002 \u5b9f\u306f\u5c11\u3057\u524d\u307e\u3067\u3088\u304fLaravel\u306e\u72ec\u81ea\u30d1\u30c3\u30b1\u30fc &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=10081\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel \u306e\u72ec\u81ea\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8907\u6570\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u7ba1\u7406\u3059\u308b\u65b9\u6cd5&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":10102,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-10081","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\/10081","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=10081"}],"version-history":[{"count":10,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/10081\/revisions"}],"predecessor-version":[{"id":10101,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/10081\/revisions\/10101"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/10102"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}