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
492 B
22 lines
492 B
1 year ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers\API\v1\WarehouseApi;
|
||
|
|
||
|
use Illuminate\Http\Request;
|
||
|
use App\Helpers\ResponseFormatter;
|
||
|
use App\Http\Controllers\Controller;
|
||
|
|
||
|
class WarehouseApiController extends Controller
|
||
|
{
|
||
|
public function index()
|
||
|
{
|
||
|
$warehouse = \App\Models\m_warehouse::all();
|
||
|
|
||
|
return ResponseFormatter::success([
|
||
|
'status' => true,
|
||
|
'message' => 'Data warehouse berhasil diambil',
|
||
|
'warehouse' => $warehouse
|
||
|
]);
|
||
|
}
|
||
|
}
|