Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 125
  1. I'm going to be honest with you all for a second.

  2. I'll start off by going over what the Pipeline class actually does.

  3. Since Alpine lives directly in the markup, it can be difficult to abstract components in the correct way.

  4. Anyone who is familiar with Livewire has probably used computed properties at some point.

  5. DRY code is important and it can be difficult to be completely DRY with your code, especially when you're using a front-end framework such as Alpine.

  6. I think jQuery's greatest feature is all of the animation / transition utilities.

  7. I'd estimate that 99% of Laravel applications register their routes using the Illuminate\Support\Facades\Route class.

  8. Most applications use jobs as a way of pushing heavy logic off of the main thread and doing work asynchronously, in the background.

  9. In most applications validation logic is placed in standardised places.

  10. Generally speaking, the easiest way to do this is comparing the name of the current route and the one you'd like to test against.

  11. Have you ever needed access to the current user's name or email address in your applications JavaScript?

  12. Livewire's polling API is great for periodically refreshing your component or invoking an action, but one of the more quietly documented features is the ability to manually refresh a component using a "magic" action.

  13. Lots of applications involve date and time manipulation.

  14. When a customer at Surewise wants to take out a new insurance policy, they can only take one out with a start date within the next thirty days.

  15. The "Repository pattern" is essentially another level of abstraction on top of your database abstraction layer.

  16. Since Alpine doesn't have a virtual DOM and doesn't compile your templates, it evaluates a component's directives procedurally, in the order that they are defined.

  17. If you've used Alpine before, you might have seen a brief flick when you load your site up.

  18. I've been using Alpine for the last couple of months in most of my projects and have experimented with different organisation patterns that improve the maintainability of my components.

  19. Although there's many ways to do this in Laravel, the simplest way is with a piece of web middleware.

  20. The other day, I wrote an article on how to achieve a similar effect to computed properties in Alpine.js.

  21. At its core, Alpine depends on an x-data attribute.

  22. I've been trying to use Alpine.js more and more throughout my projects, both personal and professional.

  23. For anyone who has used PHP before, you're probably familiar with the array_unique() function.

  24. For example, after a model gets created I don't want anyone to be able to update that record again.

  25. What is Alpine.js?

    If you're a part of the Laravel community, you've probably already heard of Alpine.