You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
470 B
21 lines
470 B
1 year ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers\API\v1\KondisiPetiApi;
|
||
|
|
||
|
use Illuminate\Http\Request;
|
||
|
use App\Helpers\ResponseFormatter;
|
||
|
use App\Http\Controllers\Controller;
|
||
|
|
||
|
class KondisiPetiApiController extends Controller
|
||
|
{
|
||
|
public function index()
|
||
|
{
|
||
|
$kondisi = \App\Models\kondisi_peti::get();
|
||
|
|
||
|
return ResponseFormatter::success([
|
||
|
'message' => 'Data kondisi peti berhasil diambil',
|
||
|
'kondisi_peti' => $kondisi,
|
||
|
]);
|
||
|
}
|
||
|
}
|