Middleware in Laravel is a bridge between all the requests and responses. Or we can say that all the requests entering your application can be filtered by middlewares. Laravel has fewer built-in middleware such as VerifyCsrfToken. The VerifyCsrfToken middleware will check the CSRF Token on each and every POST requests and through an error if the CSRF Token missed or mismatched.
REpresentational State Transfer or REST is an architectural style for providing standards between computer systems on the web. We need REST API’s to communicate over various mediums like web, desktop or mobile application through the same database. API’s do not maintain session state between requests, except use tokens to authenticate users requests.
Laravel provides a variety of validation rules that improve productivity. We can easily manage and customize the validation as per the requirement. You can also use the
Rule class while defining the validation rules. Let’s use the exits validation rule.
There are a bunch of ways to handle Form Validation through Laravel. It just depends on the developer. The robust ways to form validation is by creating a form request by the artisan command. It will help to separate the validation logic from the controller. Another way is by adding manual validatation rules within the method.
Laravel introduced the Broadcasting event if your working on web applications that require real-time responses through WebSocket. You can send messages to a server and receive event-driven responses.
Notification is a way to notify the application users for a particular activity, event etc. It already exists on the User Model. The User Model comes with already implemented notification functionality. The user model used the