What is the best idea for preview if we want to preview the post before being post?

|
ALIREZAJOM 2019-06-27 21:19:03
hi How using https://realrashid.github.io/sweet-alert/ in delete item or view

Laravel SweetAlert by Rashid Ali
A Beautiful, Responsive, Customizable, Accessible (wai-aria) Replacement for Javascript’s Popup Boxes for Laravel by Rashid Ali
DesolatorMagno 2019-06-27 21:26:26
There is a Laravel package for SweetAlert 2.
StanleyMasinde 2019-06-27 21:31:08
or you can put the alert script in inside blade’s @if(session(‘updated’)) //your Swal script @endif
ALIREZAJOM 2019-06-27 21:43:32
DesolatorMagno 2019-06-27 21:26:26
There is a Laravel package for SweetAlert 2.

yes

ALIREZAJOM 2019-06-27 21:45:47
But I could not do any work using delete item in veiw
DesolatorMagno 2019-06-27 21:46:11
You talk about delete using ajax?
ALIREZAJOM 2019-06-27 21:46:17
Please help me out so much
Nomiilk 2019-06-28 02:22:13
laravel_discuss-7932.jpg
help please
2019-06-28 02:24:14
Nomiilk 2019-06-28 02:22:13
help please

The default password on homestead is “secret”

Nomiilk 2019-06-28 02:25:39
2019-06-28 02:24:14
The default password on homestead is “secret”

So i put secret as password ?

Nomiilk 2019-06-28 02:25:45
Or i remove ?
Nomiilk 2019-06-28 02:26:56
Ok thanks
Nomiilk 2019-06-28 02:28:49
Not. I have merge the project on git. I forgot to take the database.
2019-06-28 02:29:45
Nomiilk 2019-06-28 02:25:39
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”

Nomiilk 2019-06-28 02:29:59
2019-06-28 02:29:45
If you are working under homestead, and your database its the default homestead database you need to change your pasword to “secret”

Ok thanks.

Nomiilk 2019-06-28 13:35:57
laravel_discuss-7952.jpg
please i need help
AlexSokolskikh 2019-06-28 13:39:18
Nomiilk 2019-06-28 13:35:57
please i need help

Unknown column ‘key’)

Nomiilk 2019-06-28 13:39:45
AlexSokolskikh 2019-06-28 13:39:18
Unknown column ‘key’)

when i want to add it in the db they say its a reserved word

AlexSokolskikh 2019-06-28 13:41:39
show your code.
where you insert
GauravGohil 2019-06-28 13:48:32
Hie
GauravGohil 2019-06-28 13:48:42
I am using laravel auth with ajax
GauravGohil 2019-06-28 13:49:14
When the login is successful it doesn’t redirects to dashboard
GauravGohil 2019-06-28 13:49:20
It stays there only
GauravGohil 2019-06-28 13:50:35
This is my code
GauravGohil 2019-06-28 13:50:49
laravel_discuss-7962.jpg

AlexSokolskikh 2019-06-28 13:55:11
GauravGohil 2019-06-28 13:50:49

i’m not sure, maybe you need make document.location.href = $url

skys215 2019-06-28 15:27:30
GauravGohil 2019-06-28 13:48:42
I am using laravel auth with ajax

Add request header
Accept: application/json
OR
X-Requested-With: XMLHTTPRequest

Nomiilk 2019-06-28 16:13:57
Who understand uml here please ?
GauravGohil 2019-06-28 17:24:23
Hie
GauravGohil 2019-06-28 17:24:41
I want to hide url parameter in laravel
GauravGohil 2019-06-28 17:24:54
I don’t want to use laravel encrypt
GauravGohil 2019-06-28 17:25:10
Beacuse it is generating very long value
AlexSokolskikh 2019-06-28 18:10:22
GauravGohil 2019-06-28 17:25:10
Beacuse it is generating very long value

you can generate random value.
Need field for accordance

GauravGohil 2019-06-28 18:16:58
How to do it
AlexSokolskikh 2019-06-28 18:20:22
GauravGohil 2019-06-28 18:16:58
How to do it

function RandomString()
{
$characters = ‘0123456789abcdefghijklmnopqrstuvwxyz’;
$randstring = ”;
for ($i = 0; $i < 10; $i++) {
$randstring = $characters[rand(0, strlen($characters))];
}
return $randstring;
}
RandomString();

skys215 2019-06-28 18:47:09
GauravGohil 2019-06-28 17:24:41
I want to hide url parameter in laravel

you need to decode it right?
then use base64

Abhinav Raj 2019-06-28 20:11:52
What is the best idea for preview if we want to preview the post before being post?

Post have multiple images location address category.

Abhinav Raj 2019-06-28 20:12:15
Can any one help me?
Abhinav Raj 2019-06-28 20:12:22
I am using laravel
DesolatorMagno 2019-06-28 20:51:04
Post like a blog?
loveycom 2019-06-28 21:18:27
GauravGohil 2019-06-28 13:50:49

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

Abhinav Raj 2019-06-28 21:45:48
DesolatorMagno 2019-06-28 20:51:04
Post like a blog?

As a Classified listing

Abhinav Raj 2019-06-28 21:45:57
Ads listing
ALIREZAJOM 2019-06-28 21:47:57
class FilesController extends Controller
{
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()]);

}

}

ALIREZAJOM 2019-06-28 21:47:57
box dialog in index
ALIREZAJOM 2019-06-28 21:47:57
<script type=”text/javascript”>
$(‘#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>

ALIREZAJOM 2019-06-28 21:47:57
code ajax
ALIREZAJOM 2019-06-28 21:47:57
hi i am send info bor ajax into
DesolatorMagno 2019-06-28 22:47:56
Abhinav Raj 2019-06-28 21:45:48
As a Classified listing

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.

rebory 2019-06-28 23:49:11
download the file inside blade template like this

<a href=”{{ URL::to( ‘/uploads/’ . $filename) }}” target=”_blank”>{{ $filename }}</a>

Works for me on Laravel 5.4 also

|