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.
18 lines
360 B
18 lines
360 B
<?php
|
|
|
|
namespace App\Http\Controllers\Api;
|
|
|
|
use App\Entities\Partners\Vendor;
|
|
use App\Http\Controllers\Controller;
|
|
|
|
class VendorController extends Controller
|
|
{
|
|
public function index()
|
|
{
|
|
$vendors = Vendor::where('is_active', 1)
|
|
->orderBy('name')
|
|
->pluck('name', 'id');
|
|
|
|
return response()->json($vendors);
|
|
}
|
|
}
|