Comments (10)
Thank you so much, it works now!
from flasher-livewire.
You're welcome ^^
from flasher-livewire.
Hello @Mythos thanks for using PHPFlasher, I forget to mention it in the documentation but the v1.0 has some breaking change, now the livewire adapter is included directly inside https://packagist.org/packages/php-flasher/flasher-laravel
composer require php-flasher/flasher-laravel
// this syntax is deprecated
Flasher.getInstance()
// use this instead
flasher.render(event.detail)
// or if you want to show some message from js
flasher.info('Welcome back');
flasher.error('Oops! Something went wrong!');
flasher.warning('Are you sure you want to proceed ?');
flasher.success('Data has been saved successfully!');
// for custom adapter like toastr
var toastrFactory = flasher.create("toastr");
toastrFactory.info('Welcome back');
toastrFactory.error('Oops! Something went wrong!');
toastrFactory.warning('Are you sure you want to proceed ?');
toastrFactory.success('Data has been saved successfully!');
from flasher-livewire.
Please check my PR on your repository and tell me if it's working correctly : Mythos/books#158
from flasher-livewire.
Hey there, thanks a lot for providing the PR and assisting in upgrading!
Unfortunately, I'm getting these errors:
The same happens when injecting the ToastrFactory $flasher
as described in the docs.
from flasher-livewire.
Hello, It's my pleasure.
Can you tell me which route you're getting this error from or how I can reproduce it, please ?
from flasher-livewire.
This happens for example after hitting the Update Button or changing the volume statuses in the ShowSeries
component.
One is using the livewire version, the other one the normal one as it refreshes the page.
This is where you find the two actions:
If you'd like to try it, I've uploaded a little demo database: books.zip
Login credentials are:
[email protected]
admin123
from flasher-livewire.
Can you please verify again , I just pushed some modifications :
from flasher-livewire.
The former livewire() calls are working great now!
The ones without livewire() aren't, unfortunately.
This can be reproduced when you press "Update" on the left or go to the edit symbol (or via mangas/books/spy-x-family/edit
in the URL) and save afterwards.
In both cases it should go tho the route in the screenshot (via redirect / reload) and display a message.
from flasher-livewire.
I see the problem clearly now, thank you for the details.
I just pushed the v1.0.4 which solve this redirection problem, can you check please ?
from flasher-livewire.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flasher-livewire.