Answers for "how to select table and where laravel"

PHP
0

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>
Posted by: Guest on September-22-2021
0

Laravel query where and

Table::where('Column', Value)->where('NewColumn', Value)->get();
Posted by: Guest on September-04-2020

Browse Popular Code Answers by Language