Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!

TutsPlus.com: How to Secure a REST API With Lumen

TutsPlus.com: How to Secure a REST API With Lumen

Over on the TutsPlus.com site there’s a new tutorial posted for the Lumen users out there building REST APIs. The post walks you through an authentication method for the API making use of Laravel’s included "guard" handling and an API token.

Lumen is Laravel’s little brother: a fast, lightweight micro-framework for writing RESTful APIs. With just a little bit of code, you can use Lumen to build a secure and extremely fast RESTful API.

In this video tutorial from my course, Create a REST API With Lumen, you’ll learn how to use Lumen’s built-in authentication middleware to secure a REST API with Lumen.

The post includes the screencast of the tutorial but it also includes all of the content below that in more developer-friendly text form. Screenshots of the code in various states are also included as well as descriptions of what’s happening in the auth process along the way.

Source: http://www.phpdeveloper.org/news/24541

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Posted Październik 27th, 2016 in WEB and PHP Development.

Leave a response: