skip to Main Content

How to convert more than one array to one array – Laravel

I try to scrape a currency rate from www.bi.go.id, my code like this $client = new Client(); $crawler = $client->request('GET', 'https://www.bi.go.id/id/statistik/informasi-kurs/transaksi-bi/default.aspx'); $_data = $crawler->filter('table[class="table table-striped table-no-bordered table-lg"] > tbody > tr')->each(function ($node) { $explode = explode('n', $node->text()); print_r($explode); }); my…

VIEW QUESTION

Ignore variable in update Laravel

how i can make variable in Update Statement who is ignored. I tried like this but it doesn't work. $dl = ''; $select = DB::table('Character')->where('Name', '=', $request->char)->first(); if($select->Class == 64 OR $select->Class == 65 OR $select->Class == 66) { $newcom…

VIEW QUESTION

How to group routes by API Laravel?

Here is a route rules: Route::apiResources([ 'profile' => ProfileController::class, 'specialization' => SpecializationController::class, 'specialization/filter' => SpecializationController::class, ]); I try to add a custom route into apiResource above: 'register/code/verify' => [RegisterVerifyController::class, 'verify'] As result I got this: Route::apiResources([ 'profile' => ProfileController::class, 'specialization'…

VIEW QUESTION
Back To Top
Search