<script type="text/javascript">
function variants(master_id)
{
$.ajax({
type: "GET",
url: "getVariants"+'/'+master_id,
success: function(){
}
});
}
</script>
This is the script that I have defined and kept is as simple as possible.
The route is this and it still shows me 404 not found error.
Route::get('getVariants/{master_id}','Retailer\ProductController@getVariants');