<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                #### dcat-admin 工具表單傳參使用 首先需要創建一個工具表單 ~~~ <?php namespace App\Admin\Forms; use Dcat\Admin\Models\Administrator; use Dcat\Admin\Traits\LazyWidget; use Dcat\Admin\Widgets\Form; class ResetPassword extends Form { use LazyWidget; // 如果要要傳遞參數需要使用這個traits 里面自帶了一個參數 payload可用 // 處理請求 public function handle(array $input) { // 獲取外部傳遞參數 $id = $this->payload['id'] ?? null; return $this->response()->success('密碼修改成功'); } public function form() { // 獲取外部傳遞參數 //$id = $this->payload['id'] ?? null; $this->password('password')->required(); // 密碼確認表單 $this->password('password_confirm')->same('password'); } } ~~~ 使用的時候就把參數傳遞過去 ~~~ <?php namespace App\Admin\Actions\Grid; use App\Admin\Forms\ResetPassword as ResetPasswordForm; use Dcat\Admin\Widgets\Modal; use Dcat\Admin\Grid\RowAction; class ResetPassword extends RowAction { protected $title = '修改密碼'; public function render() { // 實例化表單類并傳遞自定義參數 $form = ResetPasswordForm::make()->payload(['id' => $this->getKey()]); // 這個payload可使用就是因為上面引用了LazyWidget 可用根據這個來傳遞參數 return Modal::make() ->lg() ->title($this->title) ->body($form) ->button($this->title); } } ~~~
                  <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>

                              哎呀哎呀视频在线观看