Before learning this step by step tutorial let me tell you one thing this auth system are only for those who have a little knowledge of laravel. Let's start this awesome laravel multi auth system. We have Five Steps to complete this auth system : Create Admin and User Guard Logged In Admin and User Separatly Apply Middle-ware on Authenticate and RedirectedAuthenticated User/Admin Logout Admin and User Forget Password Here is the repository link : https://github.com/MuhammadUsmanS/LaravelMultiAuth
Send AJAX Call From Static HTML to Laravel There are some basic steps to follow: Create HTML form Receive form data when click on submit button using Jquery After receiving form data send ajax call to laravel Project or url When Request received in Controller /method it send's Response That Respose will be in success or failure Let's start Create HTML form Create index.html in which we need to make a form We need to add form id= "contact_report" intput name as name , number , course and also add id="btn-submit-report" in submit input field Receive form data when click on submit button using Jquery After footer tag we need to write jquery <script src="js/jquery.min.js "></script> <script src="js/jquery.validate.js "></script> <script src="https://cdnjs.cloudflare.com/ajax...