You talk about delete using ajax?
So i put secret as password ?
Who understand uml here please ?
you need to decode it right?
What is the best idea for preview if we want to preview the post before being post?
Can any one help me?
What do you want the system to do with the url?
A Beautiful, Responsive, Customizable, Accessible (wai-aria) Replacement for Javascript’s Popup Boxes for Laravel by Rashid Ali
yes

help please
The default password on homestead is “secret”
So i put secret as password ?
If you are working under homestead, and your database its the default homestead database you need to change your pasword to “secret”
Ok thanks.

please i need help
Unknown column ‘key’)
when i want to add it in the db they say its a reserved word
where you insert

i’m not sure, maybe you need make document.location.href = $url
Add request header
Accept: application/json
OR
X-Requested-With: XMLHTTPRequest
you can generate random value.
Need field for accordance
function RandomString()
{
$characters = ‘0123456789abcdefghijklmnopqrstuvwxyz’;
$randstring = ”;
for ($i = 0; $i < 10; $i++) {
$randstring = $characters[rand(0, strlen($characters))];
}
return $randstring;
}
RandomString();
you need to decode it right?
then use base64
Post have multiple images location address category.
You only created a variable url here. What do you want the system to do with the url? That’s what you didn’t specify. Do that and you will be fine
As a Classified listing
{
public function index()
{
return view(‘frontend.user.index’);
}
public function create()
{
return view(‘frontend.common.bearing’);
}
public function store(Request $request)
{
$this->validate($request, [
//$validator = Validator::make($request->all(), [
‘datePicker’ => ‘required’,
‘file’ => ‘required’,
]);
dd($request->errors()->all());
return $request->json([‘errors’ => $request->errors()->all()]);
}
}
$(‘#upload-in-dialog’).on(‘click’, ‘#submitFormBearing’, function () {
$.ajaxSetup({
headers: {
‘X-CSRF-TOKEN’: $(‘meta[name=”csrf-token”]’).attr(‘content’)
}
});
var registerForm = $(“#postBearing”);
var formData = registerForm.serialize();
$(‘.alert-danger’).html(“”);
$.ajax({
url: ‘/user/upload’,
type: ‘POST’,
data: formData,
success: function (data) {
console.log(data);
if (data.errors) {
if (data.errors.datePicker) {
$(‘.alert-danger’).html(data.errors.datePicker[0]);
}
if (data.errors.file) {
$(‘.alert-danger’).html(data.errors.file[0]);
}
}
if (data.success) {
$(‘#success-msg’).removeClass(‘hide’);
setInterval(function () {
$(‘#SignUp’).modal(‘hide’);
$(‘#success-msg’).addClass(‘hide’);
}, 3000);
}
},
});
});
</script>
You could make a modal and click preview show the modal which will fill with the info and look like a post, that way the user can see a preview.
<a href=”{{ URL::to( ‘/uploads/’ . $filename) }}” target=”_blank”>{{ $filename }}</a>
Works for me on Laravel 5.4 also