Commit 925ac8d2 authored by Le Dinh Trung's avatar Le Dinh Trung

fix validation plugin not working

parent 3c4974d3
@extends('layouts.app')
@section('content')
<form method="POST" action="{{ $post->id ? route('posts.update', $post->id) : route('posts.store') }}">
<form method="POST" id="form" action="{{ $post->id ? route('posts.update', $post->id) : route('posts.store') }}">
@csrf
@if ($post->id)
@method('PUT')
......@@ -43,7 +43,7 @@
<div class="col-md-12">
<!-- Basic layout-->
<div class="card" >
<form class="card-body" id="form" >
<div class="card-body">
<div class="form-group row">
<label class="col-lg-3 col-form-label">Tiêu đề</label>
<div class="col-lg-9">
......@@ -94,7 +94,7 @@
<div class="text-right">
<button type="" class="btn btn-primary">Lưu <i class="icon-paperplane ml-2"></i></button>
</div>
</form>
</div>
</div>
<!-- /basic layout -->
</div>
......@@ -142,6 +142,7 @@
}
}
})
})
</script>
@endsection
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment