get all data eloquent laravel
Blog::all();
//example usage.
$posts = Blog::all();
get all data eloquent laravel
Blog::all();
//example usage.
$posts = Blog::all();
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>
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