LoginSignup
0
0

More than 1 year has passed since last update.

バリデーションでエラーが出た後モーダルを自動で表示

Last updated at Posted at 2021-11-18

ブレード側

    @if ($errors->any())
        <script src="{{ asset('js/modal.js') }}"></script>
    @endif

public/js配下にjsファイルを作成

modal.js
$(function () {
    $('#exampleModal').modal();
});
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