laravel-5.8 validation required field if a certain radio button is checked

I have this tow radio buttons and they are required <div class=”form-group”> {!! Form::label(‘wc’, trans(‘interface.notificationForWebMobile’), [‘class’=>’col-sm-3 control-label’]) !!} <div class=”col-sm-9″> <label><input type=”radio” name=”web” value=”web”> </label> <label><input type=”radio” name=”web” value=”clients”> </label> </div> and I have this two fields. {!! Form::text(‘route’, null, [‘class’=>’form-control’, ‘placeholder’=>trans(‘interface.notificationRoute’)]) !!} {!! Form::select(‘clients_view’, [ null => ‘Please select’, ‘Home’ => ‘Home’, ‘Search’=>’Search’, ‘Registration’=>’Registration’,…

Details

R group rows based on a value of specific column and keep lower and greater value on others columns

I have a dataframe library(data.table) test_df=data.frame(chr=c(“chr1″,”chr1″,”chr1″,”chr2″,”chr2″,”chr1″,”chr1″,”chr2″,”chr1”), start=c(700,800,900,350,400,650,800,200,1000), end=c(750,850,950,400,450,700,850,250,1050), id=c(“id_1″,”id_1″,”id_1″,”id_2″,”id_2″,”id_1″,”id_1″,”id_2″,”id_3”)) I’m trying to groups the rows by ID column. For rows which have same values in chr and id, keep the lower value of start column and greater value for end column. I expect for this dataframe something like : chr start end id chr1 650…

Details

Bootstrap: Best practise trying to achieve container responsive styles in container-fluid

I have the following demo: #text { background: lightblue; } .container, .container-fluid { border: 1px solid red; } <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css” integrity=”sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm” crossorigin=”anonymous”> <section id=”text”> <div class=”container”> <div class=”row”> <div class=”col-12″> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,…

Details