ctf0 / Laravel-Media-Manager

A "Vuejs & Laravel" Media Manager With Tons of Features
MIT License
829 stars 179 forks source link

Using with own Vue #45

Closed dev-itbinc closed 6 years ago

dev-itbinc commented 6 years ago

What version of Laravel are you using? (nothing lower than v5.4).

5.6

is it an issue related to installation or usage ?

no

Extra Info "attaching a screen shot would be very helpful"

Can i use it with my Vue instance?

ctf0 commented 6 years ago

yes of course, the one in the readme is just an example.

also edit the resources/views/vendor/MediaManager/media.blade.php with any changes u may need 👍

basically u can edit anything u want, thats why the whole package resources are published together.

dev-itbinc commented 6 years ago

@ctf0 sorry, but i import _manager to my page and now have something like this image (And cant understand why i have two messages about Vue dev tools)

ctf0 commented 6 years ago

have u checked the wiki ? if yes, then

dev-itbinc commented 6 years ago

image its my console image its my blade file

ctf0 commented 6 years ago

okay, make sure to add both

@stack('styles')
@stack('scripts')

in ur main layout and see if it works

ctf0 commented 6 years ago

ur main layout should mimic https://github.com/ctf0/Laravel-Media-Manager/blob/master/src/resources/views/media.blade.php

dev-itbinc commented 6 years ago

image image

ctf0 commented 6 years ago

okay, ur app/admin.js should come after the @stack('scripts'), also clear the view cache and try again

dev-itbinc commented 6 years ago

image run php artisan view:clear. Same issue

ctf0 commented 6 years ago

am not sure what exactly is ur issue, but i have almost the exact same setup as u.

can u make a repo ?

ctf0 commented 6 years ago

so all are good ?

dev-itbinc commented 6 years ago

@ctf0 i have found solution for my issue. maybe you have an example of modal? I want to understand how is it work

ctf0 commented 6 years ago

maybe you have an example of modal?

what u mean ?, btw if there is something that should be added to the readme to help others, do tell me

dev-itbinc commented 6 years ago

I want to understand how should work manager in modal. For example if i want use it with Article.

ctf0 commented 6 years ago

the wiki is there for a reason https://github.com/ctf0/Laravel-Media-Manager/wiki/Use-The-Manager-From-A-Modal

dev-itbinc commented 6 years ago

@ctf0 i have seen wiki. I want to check it in browser and make sure that i did correct.

ctf0 commented 6 years ago

u mean like send u a screen shot , am sorry am not sure what u mean !!!

dev-itbinc commented 6 years ago

i mean that want to know how it will be assigned with my entity from form?