Middleware

Laravel 5.4 Includes Two New Middleware
Laravel 5.4 / January 18, 2017

Laravel 5.4 Includes Two New Middleware

Laravel 5.4 is scheduled to be released next week, and it already includes many great new features, but the team was able to sneak in two new Middleware offerings. These are TrimStrings and ConvertEmptyStringsToNull. Trim Strings Middleware Just as the name suggests, the Trim Strings middleware will automatically trim all the request data so you … Continue reading Laravel 5.4 I... Read more…

Easily Integrate HTTP/2 Server Push with a Laravel Middleware
Laravel Packages / August 11, 2016

Easily Integrate HTTP/2 Server Push with a Laravel Middleware

As we all know technology changes fast and if you don’t stop and look around once in awhile, you could miss it. HTTP/2 is one area of our tech stack that I haven’t been keeping up with an honestly knew nothing about it until Laracon where Ben Ramsey gave a talk on the subject. You … Continue reading Easily Integrate HTTP/2 Server Push with a Laravel MiddlewareRead more…

Laravel Tutorials / June 17, 2015

Excluding Routes from the CSRF Middleware

Laravel has CSRF enabled by default for all requests that come through your app. This is included and handled automatically to make life easier. However, one issue that comes up is when you are using external services where you do not have the ability to set a token. An example of this is with web … Continue reading Excluding Routes from the CSRF Mi... Read more…