restore composer.json, add mysqli extension
This commit is contained in:
17
app/Http/Controllers/API/BranchController.php
Executable file
17
app/Http/Controllers/API/BranchController.php
Executable file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\API;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Http\Resources\BranchResource;
|
||||
use App\Models\Branch;
|
||||
|
||||
class BranchController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$branches = Branch::all();
|
||||
|
||||
return BranchResource::collection($branches);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user