You can use the FOLLOWING SYNTAX to CHECK ajax REQUEST in laravel.if ($request->ajax()) { // Now you can write your CODE here.}
Your experience on this site will be improved by allowing cookies. Read Cookie Policy