Adding a CORS handler

blah

We will be building an application that will serve up JSON responses to requests. A separate application running on a separate domain will consume those responses and make requests to the application. Having a web application that sends requests from a different domain to the webserver itself is a configuration that represents a security risk. [...]

Read More...

>

Adding Endpoints for the Member Entity

blah

Now that we have installed Lumen and set up middleware to handle CORs we are ready to set up our first endpoint. To do this we need a Model for the tennisclub database Member entity. Save the following code to the code \app\Models\Member.php <?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Member extends Model { public function [...]

Read More...

>