• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Laravel insert dynamic input values with radio button

javascriptphplaravel


PHP Snippet 1:

<input type="radio" class="form-check-input" name="moreFields" value="'+i+'">

PHP Snippet 2:

@foreach($lease_stores as $lease_store)
                <div class="form-check form-check-inline">
                <input class="form-check-input" type="radio" name="lease_store_id" id="inlineRadio1" @if($general_details->lease_store_id==$lease_store->id) checked value="{{$lease_store->id}}" 
                @else value="{{$lease_store->id}}"
                @endif>
               <label class="form-check-label" for="inlineRadio2">{{$lease_store->name}} </label>              
              </div>
              @endforeach

Related Snippets

send email using gmail-api and google-api-php-client

renameColumn migration fails for existing column with columns does not exist error

How to loop a tree array with unknown depth and get array blocks?

How update php.ini on a Mac OS X Mojave?

Wordpress wpdb->delete issue

PHPSpreadsheet - How Do I Use Auto Migration Tool

how to sort by a custom appended relation to model

Install mysql client in docker image

PHP 8.1: strftime() is deprecated

"Notice: Undefined variable", "Notice: Undefined index", "Warning: Undefined array key", and "Notice: Undefined offset" using PHP

How to show selected value using javascript in laravel

Telegram bot doesn't answer

PHP AWS Cognito 'Error executing "SignUp" : ResourceNotFoundException : User pool client XXXX does not exist

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

Custom post type single page not working

About Contact Privacy policy Terms and conditions