Freek.dev

Laravel / PHP / AI

  • Home
  • Originals
  • Topics
  • Community
  • Archive
  • Newsletter
  • Speaking
  • Music
  • Uses
  • About
  • Search
  • Advertising
  • Home
  • Originals
  • Topics
  • Community
  • Archive
  • Newsletter
  • Speaking
  • Music
  • Uses
  • About
  • Search
  • Advertising

Using `declare(strict_types=1)` for More Robust PHP Code

Apr 18th 2023 – ashallendesign.co.uk - submitted by Ash Allen

Read about how you can use "declare(strict_types=1)" to improve the type safety of your PHP code. We'll discuss how to make your code more robust and avoid type coercion in your code that can cause bugs in your code.

Read more [ashallendesign.co.uk]

Filament Page With Sidebar

Apr 17th 2023 – github.com - submitted by Ayman Alhattami

Organize resource pages in the sidebar in order to make navigation between resource pages more comfort

Read more [github.com]

Laravel Real-Time Notifications with SSE

Apr 16th 2023 – blog.oussama-mater.me - submitted by Oussama Mater

This article shows how to implement real-time notifications using Server-Sent Events instead of WebSockets or Long Polling.

Read more [blog.oussama-mater.me]

Build A Ride Share App with Laravel and Vue

Apr 14th 2023 – youtu.be - submitted by Andrew Schmelyun

A start-to-finish video on how to build a functional ride share app like Uber from scratch with Laravel and Vue

Read more [youtu.be]

Tricks for Running Commands With Laravel Process

Apr 13th 2023 – fly.io - submitted by Chris Fidao

Use Laravel's new Process facade while avoiding issues related to processing stdout vs stderr output, environment variables, and PHP security settings.

Read more [fly.io]

Managing files using Laravel's scoped driver

Apr 13th 2023 – innocenzi.dev - submitted by Enzo Innocenzi

Back in september 2022, a new "scoped" filesystem driver has been introduced to Laravel. This article shows how to use it to improve file management and refactoring.

Read more [innocenzi.dev]

Boost Your Laravel Templates with Custom Blade Directives

Apr 11th 2023 – ashallendesign.co.uk - submitted by Ash Allen

Learn how to create your own Blade directives to make your Laravel Blade templates easier to view. The article covers what Blade directives are, how they're used in the framework, and how you can create your own "friendlyDateTime" directive.

Read more [ashallendesign.co.uk]

Doing stricter checks in PHP

Apr 9th 2023 – blog.genijaho.dev - submitted by Geni Jaho

A nice refactoring I've learned recently is to utilize types in conditionals. For years I’ve been doing `if (!empty($posts...

Read more [blog.genijaho.dev]

PayPal Webhook Client for Laravel

Apr 8th 2023 – github.com - submitted by Ankur

Handle PayPal webhooks in Laravel php framework with ease.

Read more [github.com]

No-Upload, Batched Import of Data with SheetJS CE and Livewire

Apr 6th 2023 – fly.io - submitted by Kathryn Anne Tan

What if, we can import spreadsheet data, without uploading the file?? In this article, we import data with JS packages, web workers, and Livewire!

Read more [fly.io]

Build beautiful API integrations and SDKs with Saloon!

Apr 5th 2023 – docs.saloon.dev - submitted by Sam Carré

Saloon gives you all the tools you need to build beautiful API integrations or SDKs for your application. Build API integrations faster with Saloon.

Read more [docs.saloon.dev]

Figuring out SPAs with Sanctum

Apr 4th 2023 – fly.io - submitted by Chris Fidao

Use Laravel Sanctum to host your frontend and backend on different subdomains - including authentication and CSRF protection.

Read more [fly.io]

How to Build a Polymorphic One-to-Many Factory in Laravel

Apr 4th 2023 – blog.shahryartayeb.com - submitted by Shahryar

In this blog post, I will guide you through the steps to create a Polymorphic One-to-Many factory in Laravel.

Read more [blog.shahryartayeb.com]

Laravel : Retrieve data from a model between two dates

Apr 3rd 2023 – wilo-ahadi.com - submitted by Wilo Ahadi

Three methods are explained to retrieve data between the start and end dates of a model in a Laravel 10 project.

Read more [wilo-ahadi.com]

Sit Down with Freek Van der Herten

Mar 31st 2023 – youtu.be - submitted by Bert De Swaef

In this episode I'm sitting down with Freek Van der Herten.

Read more [youtu.be]

Quick Introduction to Warp

Mar 31st 2023 – youtu.be - submitted by Bert De Swaef

Warp is a Rust-based terminal. A powerful application that eases out a lot of things for you, like sharing snippets, command history, suggestions, workflows and even a built-in AI to help you out when you get stuck.

Read more [youtu.be]

How to delay Laravel jobs and listeners within database transactions

Mar 30th 2023 – arunas.dev - submitted by Arunas

If you have jobs and listeners being fired within database transactions, it can lead to data inconsistencies if the transaction rolls back. Learn how to properly handle them here.

Read more [arunas.dev]

Calculating rolling averages with Laravel Collections

Mar 29th 2023 – www.conroyp.com - submitted by Paul Conroy

Rolling averages are a great tool for smoothing out noisy data, helping you to more easily spot long-term trends. This new package adds first-class support to Laravel Collections for rolling average calculations.

Read more [www.conroyp.com]

Autocomplete fields with Livewire

Mar 27th 2023 – fly.io - submitted by Chris Fidao

Use browser's native autocomplete input fields and dynamically update with Livewire!

Read more [fly.io]

Automated Refactoring With Rector

Mar 24th 2023 – tighten.com - submitted by Jamison Valenta

Learn how Rector, a tool for programmatically refactoring PHP code, can help you keep your codebase clean and consistent--no matter who’s working on it.

Read more [tighten.com]

← Newer Older →

Did you write or stumble across a blog post, tutorial or video that might be interesting for others?

Log in to submit a link

Freek Van der Herten

I'm a Laravel developer at Spatie and Oh Dear. I maintain 300+ open source packages for the Laravel community.

Follow on X

Oh Dear monitors your entire website, so you don't have to. Uptime, SSL certificates, broken links, scheduled tasks, DNS, and more — all in one place.

Get instant notifications when something breaks, paired with a developer friendly API and thorough documentation.

Create a public status page in under a minute. Start your free trial.