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.
22 lines
496 B
22 lines
496 B
12 months ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers\API\v1\DisposalApi;
|
||
|
|
||
|
use Illuminate\Http\Request;
|
||
|
use App\Helpers\ResponseFormatter;
|
||
|
use App\Http\Controllers\Controller;
|
||
|
|
||
|
class DisposalApiController extends Controller
|
||
|
{
|
||
|
public function index()
|
||
|
{
|
||
|
$disposals = \App\Models\Disposal::get();
|
||
|
|
||
|
return ResponseFormatter::success([
|
||
|
'status' => true,
|
||
|
'message' => 'Data Disposal Peti berhasil diambil',
|
||
|
'disposals' => $disposals
|
||
|
], 200);
|
||
|
}
|
||
|
}
|