PHP code example of palpalani / laravel-easyrec
1. Go to this page and download the library: Download palpalani/laravel-easyrec library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
palpalani / laravel-easyrec example snippets
YourModel::whereIn('id', $result['listids'])->get();
$ids = $result['listids']:
YourModel::whereIn('id', $ids)
->orderBy(DB::raw('FIELD(`id`, '.implode(',', $ids).')'))
->get();
YourModel::whereIn('id', $result['listids'])->get();
$ids = $result['listids']:
YourModel::whereIn('id', $ids)
->orderBy(DB::raw('FIELD(`id`, '.implode(',', $ids).')'))
->get();
YourModel::whereIn('id', $result['listids'])->get();
$ids = $result['listids']:
YourModel::whereIn('id', $ids)
->orderBy(DB::raw('FIELD(`id`, '.implode(',', $ids).')'))
->get();
YourModel::whereIn('id', $result['listids'])->get();
$ids = $result['listids']:
YourModel::whereIn('id', $ids)
->orderBy(DB::raw('FIELD(`id`, '.implode(',', $ids).')'))
->get();
YourModel::whereIn('id', $result['listids'])->get();
$ids = $result['listids']:
YourModel::whereIn('id', $ids)
->orderBy(DB::raw('FIELD(`id`, '.implode(',', $ids).')'))
->get();
YourModel::whereIn('id', $result['listids'])->get();
$ids = $result['listids']:
YourModel::whereIn('id', $ids)
->orderBy(\DB::raw('FIELD(`id`, '.implode(',', $ids).')'))
->get();
YourModel::whereIn('id', $result['listids'])->get();
$ids = $result['listids']:
YourModel::whereIn('id', $ids)
->orderBy(\DB::raw('FIELD(`id`, '.implode(',', $ids).')'))
->get();
YourModel::whereIn('id', $result['listids'])->get();
$ids = $result['listids']:
YourModel::whereIn('id', $ids)
->orderBy(\DB::raw('FIELD(`id`, '.implode(',', $ids).')'))
->get();
YourModel::whereIn('id', $result['listids'])->get();
$ids = $result['listids']:
YourModel::whereIn('id', $ids)
->orderBy(\DB::raw('FIELD(`id`, '.implode(',', $ids).')'))
->get();
YourModel::whereIn('id', $result['listids'])->get();
$ids = $result['listids']:
YourModel::whereIn('id', $ids)
->orderBy(\DB::raw('FIELD(`id`, '.implode(',', $ids).')'))
->get();
bash
$ php artisan vendor:publish