Jigar Dhulla

12 Followers
41 Following
42 Posts

My first ever contribution to the 3rd party Laravel Livewire package.

Faced an issue when integrating.
Fixed it.
Raised a PR.
It got merged.

PR: https://github.com/jantinnerezo/livewire-alert/pull/137

#laravel #livewire

Defer loading scripts by jigar-dhulla · Pull Request #137 · jantinnerezo/livewire-alert

As Swal is external dependency, when Swal is loaded via vite bundler, it is deferred. Hence when using flash feature, we get error Uncaught (in promise) ReferenceError: Swal is not defined. This is...

GitHub

Laravel v10.29.0 now shows the CliDumper source at the last line instead of first.

Very helpful when the dump is too long.

💡#PHP Tip:

Did you know explode() function has a limit parameter?

Useful when we know exactly how many arrays are expected in return.