Skip to content

Commit

Permalink
fix: bmiresponseresource
Browse files Browse the repository at this point in the history
  • Loading branch information
amrron committed Oct 18, 2024
1 parent 3107e3f commit 659c5af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/BmiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;
use App\Http\Resources\BmiResourece;
use App\Http\Resources\BmiResponseResourece;
use App\Http\Resources\BmiResponseResource;
use App\Http\Requests\CreateBmiRequest;

class BmiController extends Controller
Expand Down Expand Up @@ -40,7 +40,7 @@ public function store(CreateBmiRequest $request) {
'success' => true,
'status' => 'success',
'message' => 'Berhasil membuat data bmi',
'data' => new BmiResponseResourece($bmi)
'data' => new BmiResponseResource($bmi)
], 201);

} catch (\Throwable $th) {
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Resources/BmiResponseResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class BmiResponseResourece extends JsonResource
class BmiResponseResource extends JsonResource
{
/**
* Transform the resource into an array.
Expand Down

0 comments on commit 659c5af

Please sign in to comment.