wherein laravel
DB::table('user')->whereIn('id', [100,200])->get();
wherein laravel
DB::table('user')->whereIn('id', [100,200])->get();
how to retrieve data from database using select option in laravel
<select class="form-control" name="product_id">
<option>Select Product</option>
@foreach ($products as $key => $value)
<option value="{{ $key }}" {{ ( $key == $selectedID) ? 'selected' : '' }}>
{{ $value }}
</option>
@endforeach
</select>
TRANSACTON LARAVEL QUERY BUILDER
DB::beginTransaction();
try {
DB::insert(...);
DB::commit();
} catch (\Throwable $e) {
DB::rollback();
throw $e;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us