Game formats

- Created the formats tables/migrations
- Created the controller to retrieve the formats
This commit is contained in:
2020-10-31 19:20:53 +00:00
parent 49778dbbc8
commit 0691e5a107
13 changed files with 350 additions and 231 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Http\Controllers;
use App\Model\Format;
class FormatsController extends Controller
{
/**
* @return \Illuminate\Http\JsonResponse
*/
public function index()
{
$formats = Format::all();
return response()->json(['data' => $formats->toArray()], 200);
}
}