Skip to content

Instantly share code, notes, and snippets.

@er361
er361 / ClientController.php
Created September 26, 2019 14:26
Бэк-енд приложения попутка
class ClientController extends Controller
{
public function getClients(Request $request, $type)
{
$ids = json_decode($request->post('ids'));
$delete = ClientModel::where(['status' => false, 'direction' => $type])
->whereIn('id', $ids)
->pluck('id')->toArray();