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

fix validation plugin not working

parent 3c4974d3
@extends('layouts.app') @extends('layouts.app')
@section('content') @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 @csrf
@if ($post->id) @if ($post->id)
@method('PUT') @method('PUT')
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<div class="col-md-12"> <div class="col-md-12">
<!-- Basic layout--> <!-- Basic layout-->
<div class="card" > <div class="card" >
<form class="card-body" id="form" > <div class="card-body">
<div class="form-group row"> <div class="form-group row">
<label class="col-lg-3 col-form-label">Tiêu đề</label> <label class="col-lg-3 col-form-label">Tiêu đề</label>
<div class="col-lg-9"> <div class="col-lg-9">
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<div class="text-right"> <div class="text-right">
<button type="" class="btn btn-primary">Lưu <i class="icon-paperplane ml-2"></i></button> <button type="" class="btn btn-primary">Lưu <i class="icon-paperplane ml-2"></i></button>
</div> </div>
</form> </div>
</div> </div>
<!-- /basic layout --> <!-- /basic layout -->
</div> </div>
...@@ -142,6 +142,7 @@ ...@@ -142,6 +142,7 @@
} }
} }
}) })
}) })
</script> </script>
@endsection @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