is this key affect to our app?
how to flash message in session ?
How can I solve it?
you realize that the ajax code is commented right?
so how to check duplicate data before update?

Hello, how can I get the site content using the function php “file_get_contents()” if I get an error “ERROR:The Store is configured for another domain”
file_get_contents work with path in your server’s system not with urls
if you want to get html content use file_get_html($url) then you can use simplehtmldom library for parsing
Topic: Flash message in Session
#laravel #laraveltutorials #laraveltrainings
Flash message in Session
#laravel #trainings #technolearners
#laraveltrainings
#javatrainings
#springboot
learn programming online
learn java
learn spring boot
learn java j2ee
java tutorials
php tutorials
web development video
session push
session put
session flash
laravel session
how to flash message in session ?
P.m

Hi guy I got error after update data. because I checked duplicate data before update. How can I solve it?


anyone help me pls value cant show my dropdwn edit page

<span value=”{{ lang_trans(‘txt_base_price’) }}” id=”tprice”></span>
<span value=”{{ lang_trans(‘txt_total_amount’) }}” id=”amount”></span>
</div>
</div>
</div>
</div>
</div>
<div></div>
<script src=”jquery-3.6.0.min.js”>
// globalVar.cartList = {!! json_encode($cart_list) !!};
// globalVar.gstPercent = {{ $settings[‘gst’] }};
// globalVar.cgstPercent = {{ $settings[‘cgst’] }};
$(document).ready(function() {
$(‘#butsave’).on(‘click’, function() {
alert(‘hi’);
var txt_sno = $(‘#sno’).val() = {{ lang_trans(‘txt_sno’) }};
var txt_room = $(‘#troom’).val() = {{ lang_trans(‘txt_room’) }};
var txt_duration_of_stay = $(‘#tstay’).val() = {{ lang_trans(‘txt_duration_of_stay’) }};
var txt_base_price = $(‘#tprice’).val() = {{ lang_trans(‘txt_base_price’) }};
var txt_total_amount = $(‘#amount’).val() = {{ lang_trans(‘txt_total_amount’) }};
alert(txt_total_amount);
// $.ajax({
// url: “{{ route(‘bookkk’) }}”,
// type: “post”,
// data: {
// _token: $(“#csrf”).val(),
// txt_sno: txt_sno,
// txt_room: txt_room,
// txt_duration_of_stay: txt_duration_of_stay,
// txt_base_price: txt_base_price,
// txt_total_amount: txt_total_amount
// },
// cache: false,
// success: function(dataResult) {
// console.log(dataResult);
// // var dataResult = JSON.parse(dataResult);
// // if(dataResult.statusCode==200){
// // window.location = “/userData”;
// // }
// // else if(dataResult.statusCode==201){
// // alert(“Error occured !”);
// // }
// }
// });
}
});
});
</script>
@endsection
<span value=”{{ lang_trans(‘txt_base_price’) }}” id=”tprice”></span>
<span value=”{{ lang_trans(‘txt_total_amount’) }}” id=”amount”></span>
</div>
</div>
</div>
</div>
</div>
<div></div>
<script src=”jquery-3.6.0.min.js”>
// globalVar.cartList = {!! json_encode($cart_list) !!};
// globalVar.gstPercent = {{ $settings[‘gst’] }};
// globalVar.cgstPercent = {{ $settings[‘cgst’] }};
$(document).ready(function() {
$(‘#butsave’).on(‘click’, function() {
alert(‘hi’);
var txt_sno = $(‘#sno’).val() = {{ lang_trans(‘txt_sno’) }};
var txt_room = $(‘#troom’).val() = {{ lang_trans(‘txt_room’) }};
var txt_duration_of_stay = $(‘#tstay’).val() = {{ lang_trans(‘txt_duration_of_stay’) }};
var txt_base_price = $(‘#tprice’).val() = {{ lang_trans(‘txt_base_price’) }};
var txt_total_amount = $(‘#amount’).val() = {{ lang_trans(‘txt_total_amount’) }};
alert(txt_total_amount);
// $.ajax({
// url: “{{ route(‘bookkk’) }}”,
// type: “post”,
// data: {
// _token: $(“#csrf”).val(),
// txt_sno: txt_sno,
// txt_room: txt_room,
// txt_duration_of_stay: txt_duration_of_stay,
// txt_base_price: txt_base_price,
// txt_total_amount: txt_total_amount
// },
// cache: false,
// success: function(dataResult) {
// console.log(dataResult);
// // var dataResult = JSON.parse(dataResult);
// // if(dataResult.statusCode==200){
// // window.location = “/userData”;
// // }
// // else if(dataResult.statusCode==201){
// // alert(“Error occured !”);
// // }
// }
// });
}
});
});
</script>
@endsection
ajax call not working in laravel
hey, shut up and wait. someone will answer.
<span value=”{{ lang_trans(‘txt_base_price’) }}” id=”tprice”></span>
<span value=”{{ lang_trans(‘txt_total_amount’) }}” id=”amount”></span>
</div>
</div>
</div>
</div>
</div>
<div></div>
<script src=”jquery-3.6.0.min.js”>
// globalVar.cartList = {!! json_encode($cart_list) !!};
// globalVar.gstPercent = {{ $settings[‘gst’] }};
// globalVar.cgstPercent = {{ $settings[‘cgst’] }};
$(document).ready(function() {
$(‘#butsave’).on(‘click’, function() {
alert(‘hi’);
var txt_sno = $(‘#sno’).val() = {{ lang_trans(‘txt_sno’) }};
var txt_room = $(‘#troom’).val() = {{ lang_trans(‘txt_room’) }};
var txt_duration_of_stay = $(‘#tstay’).val() = {{ lang_trans(‘txt_duration_of_stay’) }};
var txt_base_price = $(‘#tprice’).val() = {{ lang_trans(‘txt_base_price’) }};
var txt_total_amount = $(‘#amount’).val() = {{ lang_trans(‘txt_total_amount’) }};
alert(txt_total_amount);
// $.ajax({
// url: “{{ route(‘bookkk’) }}”,
// type: “post”,
// data: {
// _token: $(“#csrf”).val(),
// txt_sno: txt_sno,
// txt_room: txt_room,
// txt_duration_of_stay: txt_duration_of_stay,
// txt_base_price: txt_base_price,
// txt_total_amount: txt_total_amount
// },
// cache: false,
// success: function(dataResult) {
// console.log(dataResult);
// // var dataResult = JSON.parse(dataResult);
// // if(dataResult.statusCode==200){
// // window.location = “/userData”;
// // }
// // else if(dataResult.statusCode==201){
// // alert(“Error occured !”);
// // }
// }
// });
}
});
});
</script>
@endsection
you realize that the ajax code is commented right?

<option value=”{{ $item }}” >{{ $item }}</option>

why concat $data->id in validator rule ?

why concat $data->id in validator rule ?
How?

why concat $data->id in validator rule ?
remove that part after validator string

remove that part after validator string
so how to check duplicate data before update?
you were missing comma after name if this doesnt work try student_classes,’.$dat…
idk much about validation rule but a comma is missing

can someone please help me out… this is my livewire controller

‘name’ => ‘required|unique:student_classes,name,’.$data->id
you were missing comma after name if this doesnt work try student_classes,’.$dat…
idk much about validation rule but a comma is missing
it is fixed thank you so much brother

can someone please help me out… this is my livewire controller
your product_code and id column has same values?