Closed BechirAhmed closed 5 years ago
can u make a repo with ur current progress ?
can u make a repo with ur current progress ?
@ctf0 I've already have a project on github with the manager implemented, repo
i will check it and get back to u
i will check it and get back to u
Thanks so much
I didn't understand this part of code
{{-- items selector --}}
<media-modal old="{{ old('logo', asset('storage/'.AppSettings::get('logo', 'default value'))) }}" item="logo" :name="inputName"></media-modal>
<form action="" method="" role="form">
{{-- logo --}}
<section>
<img :src="logo">
<input type="hidden" name="logo" :value="logo"/>
<button @click="toggleModalFor('logo')">Upload logo</button>
</section>
</form>
Cuz when ever i clicked on that button(Upload logo), the form submitted and refresh the page, and the url of the
but I use the last one new one, and my view it's the same as the wiki,
u r right, i was confused between the media-manager-modal
& media-modal
, sorry for that.
Cuz when ever i clicked on that button(Upload logo), the form submitted and refresh the page, and the url of the passed to url, but i don't have a choice to select the picture for first!
the reason its not working as expected is that button inside forms have the default type of submit, so u can add type="button"
to the upload logo button or use any other tag ex.
<div @click="toggleModalFor('logo')">Upload logo</div>
Thanks so much for your time, it works like a charm
I use Laravel v5.7
Usage from modal
I use The Manager from a modal to update or set my app logo, by following this example Use The Manager From A Modal, but it's not working.
Maybe i didn't understand the example or the way to use the manager from a modal. If there a real example well explained please provide it. Thanks!
...