Closed jesseyofferenvan closed 7 years ago
Try 'Laracasts\Utilities\JavaScript\JavaScriptServiceProvider::class'
in config/app.php.
For me it did the trick, but in the end I wasn't able to access the variables in my component vue file :(
I have it working something somehow, I haven't touched the code for 2 days, all I did was running artisan commands and it worked, perhaps try running:
php artisan config:clear; php artisan cache:clear; php artisan config:cache
It works like a charm for me now 👍
Thanks for your reply, unfortunately it didn't work for me. The only way I got it somewhat working is as I described in PHP-Vars-To-Js-Transformer/issues/91 :(
EDIT: behaviour is accordingly, the configuration is bound to
'bind_js_vars_to_this_view' => 'footer',
(README.md)
Ah yeah, I already had that changed to welcome for my case to do a quicker test run, good to hear its working now then!
So I just have a freshly installed project with laravel valet, using laravel 5.4. Running the following commands in the exact order.
Now I edit the config/app.php and add
to the end of the list.
Next I edit my routes/web.php to do a quick test and edit it to the following
Now I also published the config and edited it to run on the welcome page instead of the footer.
Now I get the following error: