The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

Copy Errors as Markdown to Share With AI in Laravel 12.25

Last updated on by

Never Miss a Laravel Release 🚀

Sign up and get an email with each new Laravel release

The Laravel team released v12.25.0 with a "Copy as Markdown" button on the error page, defining allowed URL patterns when preventing stray requests in the HTTP client, and more:

Copy Errors as Markdown

Marcel Pociot contributed a "Copy as Markdown" button on the Laravel error page. As Marcel mentions in the pull request description, the markdown representation can be used with AI:

When clicking this button, we copy a markdown representation of the exception to the users clipboard, which can then be used for AI agents/LLMs.

The markdown contains all the information that is also visible on the page:

  • Exception title, class, message
  • PHP and Laravel Version
  • Request and route context
  • Application context

The button is near the top right of the page, and the clipboard copy works with local (http) environments as well as HTTPS:

The "Copy as Markdown" button in dark mode.
The "Copy as Markdown" button in dark mode.

Here's an example of an error (abbreviated) I created locally to demonstrate:

# Error - Internal Server Error
Call to undefined function error_here()
 
PHP 8.3.22
Laravel 12.25.0
localhost:8000
 
## Stack Trace
 
0 - resources/views/welcome.blade.php:21
1 - vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:123
2 - vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
3 - vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:57
4 - vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:76
5 - vendor/laravel/framework/src/Illuminate/View/View.php:208
6 - vendor/laravel/framework/src/Illuminate/View/View.php:191
...
 
## Request
 
GET /
 
## Headers
 
* **host**: localhost:8000
* **user-agent**: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:141.0) Gecko/20100101 Firefox/141.0
* **accept**: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
* **accept-language**: en-US,en;q=0.5
...
 
## Route Context
 
controller: Closure
middleware: web
 
## Route Parameters
 
No route parameter data available.
 
## Database Queries
 
* sqlite - select * from "sessions" where "id" = 'uOnPTV8XE51BLUrKqXW1jkzKPvuhDbg8zHTgp3Bc' limit 1 (0.6 ms)

See Pull Request #56657 for details.

Allowed URLs Through Stray Requests

Richard Browne contributed the ability to pass an allowed list of request patterns when calling the preventStrayRequests() method in a test:

Http::allowStrayRequests([
'http://127.0.0.1:13714/*',
]);
 
// Works on a PendingRequest instance
$pendingRequest->allowStrayRequests([
'http://127.0.0.1:13714/*',
]);
 
$pendingRequest->isAllowedRequestUrl($url); // bool

See Pull Request #56645 for details.

Release notes

You can see the complete list of new features and updates below and the diff between 12.24.0 and 12.25.0 on GitHub. The following release notes are directly from the changelog:

v12.25.0

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.

image
Curotec

Curotec helps software teams hire the best Laravel developers in Latin America. Click for rates and to learn more about how it works.

Visit Curotec
Curotec logo

Curotec

World class Laravel experts with GenAI dev skills. LATAM-based, embedded engineers that ship fast, communicate clearly, and elevate your product. No bloat, no BS.

Curotec
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $3200/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Cut PHP Code Review Time & Bugs into Half with CodeRabbit logo

Cut PHP Code Review Time & Bugs into Half with CodeRabbit

CodeRabbit is an AI-powered code review tool that specializes in PHP and Laravel, running PHPStan and offering automated PR analysis, security checks, and custom review features while remaining free for open-source projects.

Cut PHP Code Review Time & Bugs into Half with CodeRabbit
Get expert guidance in a few days with a Laravel code review logo

Get expert guidance in a few days with a Laravel code review

Expert code review! Get clear, practical feedback from two Laravel devs with 10+ years of experience helping teams build better apps.

Get expert guidance in a few days with a Laravel code review
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
Lunar: Laravel E-Commerce logo

Lunar: Laravel E-Commerce

E-Commerce for Laravel. An open-source package that brings the power of modern headless e-commerce functionality to Laravel.

Lunar: Laravel E-Commerce
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit

The latest

View all →
What's new in Filament v4.5? image

What's new in Filament v4.5?

Read article
Manage Waitlists in Laravel with Laravel Waitlist image

Manage Waitlists in Laravel with Laravel Waitlist

Read article
Laravel Introduces Official AI Documentation image

Laravel Introduces Official AI Documentation

Read article
Laravel Gets a Claude Code Simplifier Plugin image

Laravel Gets a Claude Code Simplifier Plugin

Read article
Laravel Boost Update Adds Support for the New MCP Protocol image

Laravel Boost Update Adds Support for the New MCP Protocol

Read article
Pest Adds withHost for Browser Testing Subdomains in Laravel image

Pest Adds withHost for Browser Testing Subdomains in Laravel

Read article