<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # Intervention/image 當我們遇到上傳圖片的時候,有時候圖片太大,我們要對他進行處理 github : https://github.com/Intervention/image 官網 : http://image.intervention.io/ ## 安裝 ~~~ composer require Intervention/image ~~~ 在config/app.php中providers數組中添加這個 ~~~ Intervention\Image\ImageServiceProvider::class ~~~ 在config/app.php中alias數組中添加這個 ~~~ 'Image' => Intervention\Image\Facades\Image::class, ~~~ 在命令行執行 ~~~ php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5" ~~~ 會在config/image.php有這個文件 ~~~ 'driver' => 'gd' //用的是gd驅動 ~~~ ## 操作 生成的圖片寬高是50 ``` //在對應控制器寫 public function index(Request $request) { $file = $request->file('source'); //文件上傳的name是source //定義文件路徑 $destinationPath='uploads/'; //定義文件名 $filename=time().$file->getClientOriginalName(); //移動文件 $file->move($destinationPath,$filename); //use Image; 因為我們再alias那邊配置過了 Image::make($destinationPath.$filename)->fit(50,50)->save(); } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看