v1.3.0
What's Changed
Feature
debug
method added which will also print the result in the console (silent in a production environment)
// JS
Toast.debug('I will NOT show in production! Locally, I will also log in console...', 'A Debug Message');
// PHP
toast()
->debug('I will NOT show in production! Locally, I will also log in console...', 'A Debug Message')
->push();
// debug also accepts objects as message
toast()
->debug(User::factory()->createOne()->only(['name', 'email']), 'A User Dump')
->push();
Full Changelog: v1.2.1...v1.3.0