ctf0 / Laravel-Media-Manager

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

Undefined variable: base_url when I go to mydomain/media #48

Closed trungdung1995 closed 5 years ago

trungdung1995 commented 5 years ago

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

I installed laravel 5.6

is it an issue related to installation or usage ?

...

what is the error you are getting ?

Undefined variable: base_url

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

screen shot 2018-07-23 at 20 53 52

ctf0 commented 5 years ago

clear the view cache and try again, however if u've tried the demo and it worked then its probably related to ur setup.

tallcoder commented 5 years ago

I'm having the same problem. New install ... no ideas? Not sure I would call it invalid, it's happening to someone else. I've tried deleting view cache, but no luck.

ctf0 commented 5 years ago

@tallcoder & @trungdung1995 have u ran any of npm watch/dev/prod ?

have u followed the installation steps https://github.com/ctf0/Laravel-Media-Manager#installation ?

tongvanduc commented 5 years ago

I have the same problem It does not handle the problem When I used demo n worked, However, when I add the interface, a white screen This is a bug fix

ctf0 commented 5 years ago

@tongvanduc the variable gets registered based on a condition

https://github.com/ctf0/Laravel-Media-Manager/blob/cb4b72f712a45b79c473431fd53a5a230deba2db/src/MediaManagerServiceProvider.php#L21-L23

so if that folder doesnt exist, u will get the error, so you have to compile the assets b4 u start using the manager.

tongvanduc commented 5 years ago

Thanks for the answer I done