What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-10 16:20:23
how to use for foreach loop in carousel in laravel blade
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel"> <ol class="carousel-indicators"> @foreach( $photos as $photo ) <li data-target="#carouselExampleIndicato... Add solution -
-
PHP 2022-02-01 23:21:17
how to set select option value dynamically in php
foreach($optionArr as $key => $value){ $isSelected =""; //added this line if($_REQUEST['opt_side_'.$cside] == $value){ $isSelected = "selected"; } echo '<option value="'.$value.'"'.$isSelected.'>'.$k... Add solution -
PHP 2022-01-31 05:56:43
laravel old value for select option
@foreach($services as $service) @if (old('category') == $service->id) <option value="{{ $service->id }}" selected>{{ $service->title }}</option> @else <option value="{{ $service->id }}">{{ $servi... Add solution -
PHP 2022-01-26 05:45:45
store multiple session in laravel
//store multipal data Session::put('user', ['first_name' => $request->get('first_name'), 'user_role' => Auth::user()->user_role, 'city' => Auth::user()->city]); //in blade template <p> {{Session::get('user')['city']}} </p>... Add solution -
PHP 2021-12-23 16:08:26
pluck only category name and id from model in laravel
<select name="category" class="form-control"> @foreach($categories as $category) <option value="{{ $category->id }}" <?php if($hotel->category_id == $category->id) { echo "selected";}?>... Add solution
Best helpers
Rocky DeHart
+5
Cynthia
+5
Eve noonan
+5
Martinako
+5
Numeri
+5
John Weisz
+5
Tammy Lin
+5
Flyeogh
+5
SunnyHills
+5
Ishan Yadav
+5
Aown Ali
+5
Terry3497
+5
Xkcvk2511
+5
Jean Luis
+5