<span id="pfnzv"></span>
      <form id="pfnzv"><span id="pfnzv"></span></form><address id="pfnzv"><span id="pfnzv"><nobr id="pfnzv"></nobr></span></address>
      <form id="pfnzv"><dfn id="pfnzv"><listing id="pfnzv"></listing></dfn></form>

        <sub id="pfnzv"><address id="pfnzv"></address></sub>
          <address id="pfnzv"><form id="pfnzv"><listing id="pfnzv"></listing></form></address>
          <address id="pfnzv"><address id="pfnzv"><nobr id="pfnzv"></nobr></address></address>

            <address id="pfnzv"></address>
            0712-2888027 189-8648-0214
            微信公眾號

            孝感風信網絡科技有限公司微信公眾號

            當前位置:主頁 > 技術支持 > PHP > Laravel 6.2升級到laravel 7.0實錄

            Laravel 6.2升級到laravel 7.0實錄

            時間:2024-08-20來源:風信官網 點擊: 1401次
            風信網軟件項目開發版本為Laravel 6.2,現Laravel已發布7.0的版本,現將原項目進行升級,升級流程如下:
             
            修改composer.json文件
             
            laravel/framework 依賴版本到 ^7.0
            unomaduro/collision 依賴版本到 ^4.1
            phpunit/phpunit 依賴版本到 ^8.5
            laravel/tinker 依賴版本到 ^2.0
            以及 facade/ignition 依賴版本到 ^2.0
             
            Symfony 5 相關更新
             
            修改App\Exceptions\Handler中的 report 和 render 方法,并引入Throwable 接口
             
            use Throwable;
             
            public function report(Throwable $exception)
            {
            parent::report($exception);
            }
             
            public function render($request, Throwable $exception)
            {
            return parent::render($request, $exception);
            }
             
            修改session配置文件
             
            config/session.php
             
            'secure' => env('SESSION_SECURE_COOKIE', null),
             
            'same_site' => 'lax',
             
            運行composer命令
             
            composer update
             
            Loading composer repositories with package information
            Updating dependencies (including require-dev)
            Nothing to install or update
            Generating optimized autoload files
            > Illuminate\Foundation\ComposerScripts::postAutoloadDump
            > @php artisan package:discover --ansi
            Discovered Package: [32mfacade/ignition[39m
            Discovered Package: [32mfideloper/proxy[39m
            Discovered Package: [32mintervention/image[39m
            Discovered Package: [32mkalnoy/nestedset[39m
            Discovered Package: [32mlaravel/tinker[39m
            Discovered Package: [32mmews/captcha[39m
            Discovered Package: [32mnesbot/carbon[39m
            Discovered Package: [32mnunomaduro/collision[39m
            Discovered Package: [32mrenatomarinho/laravel-page-speed[39m
            [32mPackage manifest generated successfully.[39m
            44 packages you are using are looking for funding.
            Use the `composer fund` command to find out more!
             
            更新認證方式
             
            composer require laravel/ui "^2.0"
             
            Blade模板
             
            Blade::component 方法已重命名為 Blade::aliasComponent
             
            至此Laravel 7.0升級完成!風信建站專業網站開發,Web應用開發,微信開發、小程序開發,網站系統重構專業技術服務公司,如有相關開發需求歡迎至電:189-8648-0214,專業的技術助您解決企業的難題。
            熱門關鍵詞: Laravel 6.2 升級 laravel
            欄目列表
            推薦內容
            熱點內容
            展開
            国产精久久久久无码AV动漫|最新亚洲精品国偷自产在线|2021亚洲色中文字幕在线|最新无码av中文字专区 情欲美妇紧致敏感 国产免费AⅤ片在线播放 人妻爽爽免费在线视频 51精品国产人成在线观看 色偷偷av一区二区三区
            <span id="pfnzv"></span>
                <form id="pfnzv"><span id="pfnzv"></span></form><address id="pfnzv"><span id="pfnzv"><nobr id="pfnzv"></nobr></span></address>
                <form id="pfnzv"><dfn id="pfnzv"><listing id="pfnzv"></listing></dfn></form>

                  <sub id="pfnzv"><address id="pfnzv"></address></sub>
                    <address id="pfnzv"><form id="pfnzv"><listing id="pfnzv"></listing></form></address>
                    <address id="pfnzv"><address id="pfnzv"><nobr id="pfnzv"></nobr></address></address>

                      <address id="pfnzv"></address>