Laravel

February 14, 2024

Submitting Inertia Forms to a New Window in Laravel/Vue Applications

In Laravel applications using Inertia.js and Vue.js, there might be scenarios where you need to submit a form to a new window….

Read More…

January 19, 2024

Dual-use Conditional Laravel Controller Methods for Inertia + Vue

Dual-use controllers in Laravel serve a dual purpose: they return/render an Inertia/Vue page when accessed normally and JSON data when requested via…

Read More…

Modifying HTTP headers in an Inertia.js Laravel application

When you return an Inertia response using Inertia::render(), it doesn’t return a standard Laravel response object directly. Instead, it returns an instance…

Read More…

December 20, 2023

Should I run npm run build/prod on dev or prod?

Should you run npm run build on your development machine and commit everything to Git or should you commit your app without…

Read More…

October 20, 2023

Laravel Cookie Encryption

Laravel Cookie Encryption Laravel encrypts and signs all cookies automatically, to prevent the client from modifying them. Laravel’s encryption is done via…

Read More…

Laravel Authentication vs. Authorization

Let’s dive into the details: 1. Authentication vs. Authorization: Authentication is the process of identifying who a user is, while Authorization is…

Read More…

Laravel: Should I use Breeze or Jetstream? And what’s Nova?

Both Laravel Breeze and Laravel Jetstream are officially maintained packages by Laravel for scaffolding out authentication systems. While they might seem similar…

Read More…

October 19, 2023

Laravel: Breeze as a Dev Dependency vs. Jetstream as a Production Dependency

When you start a project with Laravel Breeze you require it as a dev dependency like this: composer require laravel/breeze –dev But…

Read More…

Laravel 10: middlewareAliases, routeMiddleware & middlewareGroups

In new Laravel applications, the $routeMiddleware property of the App\Http\Kernel class has been renamed to $middlewareAliases to better reflect its purpose. Here’s…

Read More…

October 18, 2023

Create a New Laravel Project: No-Nonsense, Step-by-Step Guide

Get Your Environment Ready: Fire up your Windows Terminal. Get a new session going with your WSL2 Linux system. Pick an Application…

Read More…