0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Filament 2.x】レコード作成機能の「保存して、続けて作成」ボタンを消す

Posted at

概要

レコード作成ページには

  • 作成
  • 保存して、続けて作成
  • キャンセル

のボタンが自動生成される。

image.png

Createクラス内で$canCreateAnotherプロパティを追加して「保存して、続けて作成」ボタンを消す

class CreateStore extends CreateRecord
{
    protected static string $resource = StoreResource::class;
    //↓追加
    protected static bool $canCreateAnother = false;
}

スクリーンショット 2023-05-16 10.55.12.png

はい消えた。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?