How can I customize url? #1548
-
I used to work with laravel-livewire-tables version ^2.0 (with livewire 2.0) and I upgrade to ^3.0 version (and livewire to 3.0 version). In livewire 3.0 the asset_url config doesn't exist anymore and I have to add into routes/web.php :
It seems that livewire-tables doesn't use the Livewire::setScriptRoute() because I have these errors :
Is there a way to customize the url? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Not in this version, (Not easily anyway). it's been on my to do list for a bit, so will make it into the next release most likely. You can however use the following methods, which respect the format of Livewire::setScriptRoute, but your mileage may vary! Can I ask the issue you're experiencing here though, as those paths are used when injection is used, if you're publishing the code and including it yourself in another way, then you can ignore all of that completely (both for Livewire and Tables). I'm assuming you've just got the whole site on a subdirectory? |
Beta Was this translation helpful? Give feedback.
This should now be available in v3.1.3 in the config file, e.g: