Laravel Livewire V3 – Getting Started (1/3)

Livewire is a Laravel package to make powerful, dynamic, front-end UI. It offers a convenient way of building SPA-like interactive apps with PHP (without writing JavaScript).

On July 20th of 2023, at Laracon US, the new shiny Laravel Livewire v3 is officially released. With the new Alpine based core and a bunch of new features – it’s going to be awesome!

Let’s explore the fresh, out-of-the-oven Livewire. ♨️

We are going to build a Fortune Cookie Message app. These are small, inspirational, positive messages printed on paper and served inside specially shaped cookies. See the story here.

FortuneCookieMessage app with Laravel Livewire V3

We’ll make it in a 3 step journey with the following milestones:

  1. Make a new Livewire app. Show up a different inspirational message every time we hit a button.
  2. Add an Emoji reaction counter. Explore various livewire features.
  3. Make an admin section with authentication and a data grid.

It’s small enough to try and complete within a day but has the scope of exploring various interactivity features.

Continue reading →

Laravel Gates – a graphical intro for beginners

Gates! The first impression it makes is “way to enter somewhere”. But, in reality, the primary responsibility of a gate is to prevent unwanted entry. Another perspective of thinking about gates is – different gates will take you to different places.

Laravel picked this word, “Gate” to name its basic authorization system. What a beautiful similarity between the purpose of an authorization system and the real life gates!

In this post, we are going to:

  • Take a simple application as an example scenario.
  • Identify the usages of authorization in this application.
  • And then, how we can solve it using Laravel Gates.
Continue reading →

New Laravel app with a head start from CLI

Sometimes, we want to quickly try out a new product idea. But where to start? 🤔

Just open your terminal, copy-paste the following commands, and you’ll get a basic Laravel app in 5 minutes. Additionally, it’ll have some basic things ready like login, registration, user profile, user listing, etc. Ready to build anything upon this base.

Now, it’s your time to focus on your very own idea. 🚀

Continue reading →