New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can i move the flash-toastr.min.js file for flasher-toastr-laravel from cdn to local #84
Comments
Hello @wcaaan thanks for your words. You could either download the cdn and copy it somewhere in the public folder, or use npm npm i @flasher/flasher here is a link in the doc : https://php-flasher.io/docs/framework/javascript/ |
thank you |
I copied the flasher.min.js to public folder and override the root_script with the public folder file, that is working fine but |
would'nt it be better if there was a config file for adapter as well ? so if anyone can override the root_script ? |
Yes you have to do the same for // config/flasher_toastr.php
return [
'scripts' => [
// path for jquery if it's not already added globally
// path to the flasher-toastr.min.js
],
]; don't forget to add |
Awesome, thankyou. also can you please tell me how can i pass the flasherInterface from view to show my validation errors, i tried checking out the blade documentation but its empty. appreciate the help. |
No worries. |
Hey,
First of all amazing package and very nice work. I can find the config file for
flasher-laravel
and i can override the js file there but how do i move the js file of this adapter "flasher-toastr-larave" from cdn to local.Thankyou
The text was updated successfully, but these errors were encountered: