ブレード側
@if ($errors->any())
<script src="{{ asset('js/modal.js') }}"></script>
@endif
public/js配下にjsファイルを作成
modal.js
$(function () {
$('#exampleModal').modal();
});
More than 1 year has passed since last update.
ブレード側
@if ($errors->any())
<script src="{{ asset('js/modal.js') }}"></script>
@endif
public/js配下にjsファイルを作成
$(function () {
$('#exampleModal').modal();
});
Register as a new user and use Qiita more conveniently