Community Articles

Disabling Composer's default timeout inside of scripts - Post Image

Disabling Composer's default timeout inside of scripts

I like to use the scripts key inside of my composer.json to write reusable runner commands – normally things like background processes, build scripts, etc. The problem is Composer has a default execution timeout of 30 seconds, so when I've got a long-run

CLI

Embed Livewire Components Using Wire Extender - Post Image

Embed Livewire Components Using Wire Extender

Wire Extender allows you to embed any Livewire component on any website or even within a static HTML file.

Livewire

Validate Data Types in Laravel Collections Using the `ensure()` Method - Post Image

Validate Data Types in Laravel Collections Using the `ensure()` Method

The ensure() method allows you to ensure that the items in a Collection are of a specific data type. If an item in the Collection is not of the specified data type, the method will throw an UnexpectedValueException.

Laravel Validation

Generating status badges using PHP - Post Image

Generating status badges using PHP

ecently, we introduced a nice new feature to Oh Dear: status badges. A status badge is a beautiful SVG that shows the uptime status of your site.

Laravel

Five Ways to Be More Productive with Git - Post Image

Five Ways to Be More Productive with Git

In this post, I've gathered some of my favorite tools to make working with Git more productive. I'll cover different types of tools, ranging from git aliases, git tools, git workflows, and more.

Git

Create Beautiful Charts in Filament With the Apex Charts Plugin - Post Image

Create Beautiful Charts in Filament With the Apex Charts Plugin

The Apex Charts plugin for Filament by Leandro Ferreira brings the popular Apex Chart library to your Laravel applications. This plugin uses the same API as the Apex Chart library, so you can use the official documentation as a configuration reference for

Filament Laravel

Shorthand comparisons in PHP - Post Image

Shorthand comparisons in PHP

You probably already know some comparison operators in PHP. Things like the ternary ?:, the null coalescing ?? and the spaceship <=> operators. But do you really know how they work? Understanding these operators makes you use them more, resulting in a cle

Vanilla PHP

Creating beautiful invoices using Tailwind and Laravel PDF - Post Image

Creating beautiful invoices using Tailwind and Laravel PDF

Last week, we released a new package called Laravel PDF that allows you to transform Blade views into PDFs. Under the hood, Chromium is used to perform the transformation. Because Chromium is an up-to-date browser, you can use any modern CSS you like.

Laravel Tailwind

Exploring Middleware in Laravel 11 - Post Image

Exploring Middleware in Laravel 11

Laravel 11 is set to release in "Q1" of 2024, which may be as soon as next month.

Laravel

Building Maintainable PHP Applications: Over-engineering vs under-engineering - Post Image

Building Maintainable PHP Applications: Over-engineering vs under-engineering

Overengineering (or over-engineering) is the act of designing a product or providing a solution to a problem in an elaborate or complicated manner, where a simpler solution can be demonstrated to exist with the same efficiency and effectiveness as that of

Vanilla PHP

PHP Attributes: how to use PHP Attributes and create custom attribute classes – Fast Tips - Post Image

PHP Attributes: how to use PHP Attributes and create custom attribute classes – Fast Tips

PHP attributes were introduced in PHP 8.0. This version marked a significant milestone for the language, bringing several new features and improvements, including the introduction of attributes for adding metadata to code declarations.

Vanilla PHP

Creating Data Tables in Livewire - Post Image

Creating Data Tables in Livewire

Let's create the Livewire component we're going to use for our data table. While we're at it, we'll talk about component naming and organization for a task like this.

Livewire

Self-healing URLs in Laravel - Post Image

Self-healing URLs in Laravel

These packages have a similar goal: you can change your model's route slug at will or only partially match a URL and never have to worry about SEO indexing when the slug changes.

Laravel

Building a procedurally generated game with PHP - Post Image

Building a procedurally generated game with PHP

Today, we're building a procedurally generated, 2D game with PHP. It's a simple game that's focussed around resource gathering on a procedurally generated map.

Vanilla PHP

Laravel Pulse Beta Released - Post Image

Laravel Pulse Beta Released

Pulse delivers at-a-glance insights into your application's performance and usage. Track down bottlenecks like slow jobs and endpoints, find your most active users, and more.

Laravel

A Collaborative List of 1400+ Public APIs - Post Image

A Collaborative List of 1400+ Public APIs

A Collaborative List of 1400+ Public APIs

Other

Rapid Laravel Development with Filament - Post Image

Rapid Laravel Development with Filament

In this Laracasts series, I will teach you how to rapidly build applications using Filament and Laravel. By episode two, we will have a nearly fully functioning application.

Filament

PHP 8.3 Released - Post Image

PHP 8.3 Released

PHP 8.3 is a major update of the PHP language. It contains many new features, such as explicit typing of class constants, deep-cloning of readonly properties and additions to the randomness functionality. As always it also includes performance improvement

Vanilla PHP

Introducing the Laravel Number Utility Class - Post Image

Introducing the Laravel Number Utility Class

A new Number utility class that provides several new helpers to format numbers, and it should be available in the next Laravel release this week.

Laravel

Laravel Pulse - Post Image

Laravel Pulse

Pulse delivers at-a-glance insights into your application's performance and usage. Track down bottlenecks like slow jobs and endpoints, find your most active users, and more.

Laravel

A NativePHP Example - Post Image

A NativePHP Example

NativePHP is out (in alpha currently), and I’ve had a great time building a desktop app in Laravel.

NativePHP

DevOps With Laravel: Dockerizing a Laravel application - Post Image

DevOps With Laravel: Dockerizing a Laravel application

In this article, I'm going to show you how to dockerize an application that has the following components.

Laravel Docker

NativePHP Tutorial: Building a Mac MenuBar application - Post Image

NativePHP Tutorial: Building a Mac MenuBar application

Follow along with me as we put together a Mac MenuBar application to know the local time of each member of your team.

NativePHP

Everything You Can Test In Your Laravel Application - Post Image

Everything You Can Test In Your Laravel Application

A common challenge in testing is not only HOW to test something, but WHAT you can test. That's why I have made a list of all the things I like to test in my applications.

Laravel

Learn Livewire 3, Volt, and Folio by building a podcast player - Post Image

Learn Livewire 3, Volt, and Folio by building a podcast player

Yesterday, the Laravel team released Laravel Folio - a powerful page-based router designed to simplify routing in Laravel applications. Today, they released Volt.

Livewire

Define Casts in a Query - Post Image

Define Casts in a Query

Laravel has Eloquent attribute and custom casting. But did you know about query-time casting? It's documented in Laravel, and illustrated beautifully by Aaron Francis.

Eloquent Laravel

A look at what's coming to Laravel 11 - Post Image

A look at what's coming to Laravel 11

Laravel 11 is not scheduled to be released until the end of the year, but some new features have been shared out, and Taylor goes through some big new improvements in his Laracon keynote.

Laravel

Refactoring conditionals to callables in PHP - Post Image

Refactoring conditionals to callables in PHP

Recently, I came across a very handy tip by Nuno Maduro where you can refactor some of the conditionals in your code to callables to make your code more elegant and readable.

Laravel Vanilla PHP

Usage Laravel and ChatGPT "Function calling" - Post Image

Usage Laravel and ChatGPT "Function calling"

Recently, OpenAI released an update for ChatGPT, introducing new features that allow developers to describe language model functions - gpt-4-0613 and gpt-3.5-turbo-0613. These features enable the generation of JSON objects containing arguments to run thes

Laravel AI

Upcoming Livewire v3 Features and Changes - Post Image

Upcoming Livewire v3 Features and Changes

Last Wednesday at Laracon Online, Caleb Porzio gave a talk called "The Future of Livewire" demoing all the new features planned for Livewire v3. In this article, we'll go over those features again in case you missed the talk or want a second look.

Livewire

Recreating the GitHub UI with Tailwind! - Live Stream with Jess Archer - Post Image

Recreating the GitHub UI with Tailwind! - Live Stream with Jess Archer

Here's Jess Archer showing how you can recreate the GitHub UI with Tailwind.

Tailwind

SDKs, The Laravel Way - Post Image

SDKs, The Laravel Way

Each call to the builder will modify the underlying pending request. Every modification, another link in the chain, that will be sent, finally, with get().

Laravel

Clipboard - Post Image

Clipboard

Copy, cut & paste in your application. You read that right.

Laravel

Awesome Livewire - Post Image

Awesome Livewire

A curated list of Livewire resources.

Livewire

A Laravel package to monitor the health of your application - Post Image

A Laravel package to monitor the health of your application

Using this package you can monitor the health of your application by registering checks.

Laravel

Multi-Input Sorcery And Other Laravel Livewire Tips - Post Image

Multi-Input Sorcery And Other Laravel Livewire Tips

Daniel Coulbourne shares some cool Livewire insights.

Livewire Laravel

Tip: Run Tinker Instantly - Post Image

Tip: Run Tinker Instantly

Laravel productivity tip! Add this little function to your bash profile to quickly execute anything with the Tinker command and get the results instantly.

Laravel CLI

[8.x] Adds a simple where helper for querying relations - Post Image

[8.x] Adds a simple where helper for querying relations

Creates the whereRelation() and orWhereRelation() helpers, and whereMorphRelation() and orWhereMorphRelation() for morph relations.

Eloquent Laravel

Immutable dates in Laravel - Post Image

Immutable dates in Laravel

This week's 8.53.0 release includes new "immutable_date" and "immutable_datetime" casts for Eloquent!

Eloquent Laravel

A lightweight Laravel package to track changes over time - Post Image

A lightweight Laravel package to track changes over time

The Spatie team has released a new package called spatie/laravel-stats. This package is a lightweight solution for summarizing changes in your database over time.

Laravel

Pruning Laravel Models - Post Image

Pruning Laravel Models

In the latest version of Laravel 8, Eloquent models now come with a Prunable and MassPrunable trait to automatically delete models based on criteria.

Laravel

Getting started with Laravel Spotlight - Post Image

Getting started with Laravel Spotlight

Use a Mac-ish Spotlight command pallette on your apps built with Livewire.

Livewire Laravel

Health Icons - Post Image

Health Icons

Free, open source health icons

CSS

Laravel Batches and real-time progress with Livewire - Post Image

Laravel Batches and real-time progress with Livewire

Learn how to process incoming files using job batches, Laravel Echo, Laravel Livewire, Pusher, all in real time with a surprise ending.

Alpine Blade Livewire Laravel Tailwind

Why we need multi-line short closures in PHP - Post Image

Why we need multi-line short closures in PHP

PHP 8.1 is already taking shape quite well, yet there's one feature I'd love to see added, that's still being discussed: multi-line short closures.

Defining Default Password Validation Rules in Laravel - Post Image

Defining Default Password Validation Rules in Laravel

In Laravel 8.43, the Password Validation Rule Object now supports the ability to define default password rules you can use across your application.

Laravel

A package to watch for file system changes in PHP - Post Image

A package to watch for file system changes in PHP

The Spatie team has released a new package called file-system-watcher. As the name implies, this package can watch changes in the file system and let you act on those changes.

Find N+1 problems instantly by disabling lazy loading - Post Image

Find N+1 problems instantly by disabling lazy loading

In the next release of Laravel 8, you can strictly disable lazy loading entirely, resulting in an exception.

Laravel

Laravel one-of-many relationships - Post Image

Laravel one-of-many relationships

This pull request to the Laravel framework provides a solution for creating one-to-one relations that are a partial relation of a one-to-many relation.

Laravel Eloquent Database

DOM Events Visualizer - Post Image

DOM Events Visualizer

Learn about the DOM Event system through exploration.

Javascript

Showing 1 to 50 of results