Skip to content

Instantly share code, notes, and snippets.

@aniket-magadum
Last active August 7, 2023 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aniket-magadum/9151db16ab11f09b25759a8b6572d3e5 to your computer and use it in GitHub Desktop.
Save aniket-magadum/9151db16ab11f09b25759a8b6572d3e5 to your computer and use it in GitHub Desktop.
Software Rule Book
  1. Always make use of migrations when working with a laravel application.
  2. Make use of Model Events and events in general wisely as it may cause bugs which are very difficult to reproduce and also can be very nasty.
  1. Use the wire:model.defer method wherever possible to prevent round trips to the server.
  2. Use the wire:loading attribute to show a loader.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment