Laravel5.5에서 5.6으로 업데이트
                                            
                                                
                                                
                                                
                                                
                                                
                                                 4435 단어  laravel5.6
                    
어머니 뉴스 
Laavel로 기본 CRUD 만들기 
부모 기사에서 제작된 라벨 앱을 업데이트한다.
종속 패키지 업데이트 
공식 문서의 지시에 따라 수정composer.json.
   5.5에서 5.6.0으로 업그레이드 
composer.json     "require": {
-        "php": ">=7.0.0",
+        "php": ">=7.1.3",
-        "fideloper/proxy": "^3.3",
+        "fideloper/proxy": "~4.0",
-        "laravel/framework": "5.5.*",
+        "laravel/framework": "5.6.*",
     },
     "require-dev": {
-        "laravel/dusk": "^2.0",
+        "laravel/dusk": "~3.0",
-        "phpunit/phpunit": "~6.0"
+        "phpunit/phpunit": "~7.0"
     },
(中略)
     "scripts": {
         "post-install-cmd": [
-            "Illuminate\\Foundation\\ComposerScripts::postInstall",
-            "php artisan optimize"
+            "Illuminate\\Foundation\\ComposerScripts::postInstall"
         ],
         "post-update-cmd": [
-            "Illuminate\\Foundation\\ComposerScripts::postUpdate",
-            "php artisan optimize"
+            "Illuminate\\Foundation\\ComposerScripts::postUpdate"
         ],
그런 다음 업데이트를 수행합니다.
PowerShell> composer update
누설 여부를 확인하다 
명령에서는 다른 종속 패키지가 업데이트되었는지 확인합니다.composer.json에 기재된 내용 중 모커리에 업데이트가 있는 것 같습니다.
PowerShell> composer outdated
hamcrest/hamcrest-php                 v1.2.2  ~ v2.0.0  This is the PHP port of Hamcrest Matchers
mockery/mockery                       0.9.9   ~ 1.0     Mockery is a simple yet flexible PHP mock object framework ...
phpdocumentor/type-resolver           0.4.0   ~ 0.6.1
symfony/translation                   v3.4.4  ~ v4.0.4  Symfony Translation Component
바로 아래와 같이 수정composer.json하고 업데이트를 다시 실행하면 실패합니다.
composer.json-        "mockery/mockery": "0.9.*",
+        "mockery/mockery": "^1.0",
다음 로그를 봤는데 모커리를 업데이트하려면hamcrest-php를 업데이트해야 할 것 같습니다.
PowerShell> composer update mockery/mockery
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - don't install hamcrest/hamcrest-php v2.0.0|remove hamcrest/hamcrest-php v1.2.2
    - don't install hamcrest/hamcrest-php v2.0.0|don't install hamcrest/hamcrest-php v1.2.2
    - don't install hamcrest/hamcrest-php v2.0.0|don't install hamcrest/hamcrest-php v1.2.2
    - mockery/mockery 1.0 requires hamcrest/hamcrest-php ~2.0 -> satisfiable by hamcrest/hamcrest-php[v2.0.0].
    - Installation request for mockery/mockery ~1.0 -> satisfiable by mockery/mockery[1.0].
    - Installation request for hamcrest/hamcrest-php (locked at v1.2.2) -> satisfiable by hamcrest/hamcrest-php[v1.2.2].
why 명령 확인 후 hamcrest-php를 사용한 것은 모커리밖에 없습니다.
PowerShell> composer why hamcrest/hamcrest-php
mockery/mockery  0.9.9  requires  hamcrest/hamcrest-php (~1.1)
그래서 모커리를 다시 설치합니다.
PowerShell# 一旦削除
> composer remove --dev mockery/mockery
# 改めてインストール
> composer require --dev mockery/mockery
이렇게 하면 완성된다.
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(Laravel5.5에서 5.6으로 업데이트), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/sutara79/items/0ff6d757b5496c97e2e0
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
공식 문서의 지시에 따라 수정
composer.json.composer.json
     "require": {
-        "php": ">=7.0.0",
+        "php": ">=7.1.3",
-        "fideloper/proxy": "^3.3",
+        "fideloper/proxy": "~4.0",
-        "laravel/framework": "5.5.*",
+        "laravel/framework": "5.6.*",
     },
     "require-dev": {
-        "laravel/dusk": "^2.0",
+        "laravel/dusk": "~3.0",
-        "phpunit/phpunit": "~6.0"
+        "phpunit/phpunit": "~7.0"
     },
(中略)
     "scripts": {
         "post-install-cmd": [
-            "Illuminate\\Foundation\\ComposerScripts::postInstall",
-            "php artisan optimize"
+            "Illuminate\\Foundation\\ComposerScripts::postInstall"
         ],
         "post-update-cmd": [
-            "Illuminate\\Foundation\\ComposerScripts::postUpdate",
-            "php artisan optimize"
+            "Illuminate\\Foundation\\ComposerScripts::postUpdate"
         ],
그런 다음 업데이트를 수행합니다.PowerShell
> composer update
누설 여부를 확인하다 
명령에서는 다른 종속 패키지가 업데이트되었는지 확인합니다.composer.json에 기재된 내용 중 모커리에 업데이트가 있는 것 같습니다.
PowerShell> composer outdated
hamcrest/hamcrest-php                 v1.2.2  ~ v2.0.0  This is the PHP port of Hamcrest Matchers
mockery/mockery                       0.9.9   ~ 1.0     Mockery is a simple yet flexible PHP mock object framework ...
phpdocumentor/type-resolver           0.4.0   ~ 0.6.1
symfony/translation                   v3.4.4  ~ v4.0.4  Symfony Translation Component
바로 아래와 같이 수정composer.json하고 업데이트를 다시 실행하면 실패합니다.
composer.json-        "mockery/mockery": "0.9.*",
+        "mockery/mockery": "^1.0",
다음 로그를 봤는데 모커리를 업데이트하려면hamcrest-php를 업데이트해야 할 것 같습니다.
PowerShell> composer update mockery/mockery
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - don't install hamcrest/hamcrest-php v2.0.0|remove hamcrest/hamcrest-php v1.2.2
    - don't install hamcrest/hamcrest-php v2.0.0|don't install hamcrest/hamcrest-php v1.2.2
    - don't install hamcrest/hamcrest-php v2.0.0|don't install hamcrest/hamcrest-php v1.2.2
    - mockery/mockery 1.0 requires hamcrest/hamcrest-php ~2.0 -> satisfiable by hamcrest/hamcrest-php[v2.0.0].
    - Installation request for mockery/mockery ~1.0 -> satisfiable by mockery/mockery[1.0].
    - Installation request for hamcrest/hamcrest-php (locked at v1.2.2) -> satisfiable by hamcrest/hamcrest-php[v1.2.2].
why 명령 확인 후 hamcrest-php를 사용한 것은 모커리밖에 없습니다.
PowerShell> composer why hamcrest/hamcrest-php
mockery/mockery  0.9.9  requires  hamcrest/hamcrest-php (~1.1)
그래서 모커리를 다시 설치합니다.
PowerShell# 一旦削除
> composer remove --dev mockery/mockery
# 改めてインストール
> composer require --dev mockery/mockery
이렇게 하면 완성된다.
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(Laravel5.5에서 5.6으로 업데이트), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/sutara79/items/0ff6d757b5496c97e2e0
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
> composer outdated
hamcrest/hamcrest-php                 v1.2.2  ~ v2.0.0  This is the PHP port of Hamcrest Matchers
mockery/mockery                       0.9.9   ~ 1.0     Mockery is a simple yet flexible PHP mock object framework ...
phpdocumentor/type-resolver           0.4.0   ~ 0.6.1
symfony/translation                   v3.4.4  ~ v4.0.4  Symfony Translation Component
-        "mockery/mockery": "0.9.*",
+        "mockery/mockery": "^1.0",
> composer update mockery/mockery
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - don't install hamcrest/hamcrest-php v2.0.0|remove hamcrest/hamcrest-php v1.2.2
    - don't install hamcrest/hamcrest-php v2.0.0|don't install hamcrest/hamcrest-php v1.2.2
    - don't install hamcrest/hamcrest-php v2.0.0|don't install hamcrest/hamcrest-php v1.2.2
    - mockery/mockery 1.0 requires hamcrest/hamcrest-php ~2.0 -> satisfiable by hamcrest/hamcrest-php[v2.0.0].
    - Installation request for mockery/mockery ~1.0 -> satisfiable by mockery/mockery[1.0].
    - Installation request for hamcrest/hamcrest-php (locked at v1.2.2) -> satisfiable by hamcrest/hamcrest-php[v1.2.2].
> composer why hamcrest/hamcrest-php
mockery/mockery  0.9.9  requires  hamcrest/hamcrest-php (~1.1)
# 一旦削除
> composer remove --dev mockery/mockery
# 改めてインストール
> composer require --dev mockery/mockery
Reference
이 문제에 관하여(Laravel5.5에서 5.6으로 업데이트), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/sutara79/items/0ff6d757b5496c97e2e0텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)