CSRF on YAJRA datatable Laravel5.5 not working
问题 I have this code where I needed to store in a variable so I display it in view, I've tried different approach of packing the "Form header" and using CSRF is not working $return = '<form method="post" action="/procurement/add-product"> '.{{ csrf_token() }}.' <input type="hidden" name= "product_id" value=".$row->id."> <input type="text" name="product_qty" class="form-control"> <button type="submit" class="btn btn-primary btn-block">Add Item</button> </form>'; return $return; Here is my route