Skip to content

Upgrade to Laravel 13#148

Merged
freekmurze merged 7 commits intomainfrom
upgrade-laravel-13
Mar 18, 2026
Merged

Upgrade to Laravel 13#148
freekmurze merged 7 commits intomainfrom
upgrade-laravel-13

Conversation

@freekmurze
Copy link
Member

@freekmurze freekmurze commented Mar 18, 2026

Summary

Upgrade from Laravel 12 to Laravel 13, adopt new framework features, and migrate AI integrations to first-party packages.

Framework upgrade

  • laravel/framework ^12.0 → ^13.0
  • laravel/tinker ^2.9 → ^3.0
  • pestphp/pest-plugin-laravel ^4.0 → ^4.1
  • Filament upgraded from v5.3.2 → v5.4.0
  • Symfony components upgraded from v7 → v8

CSRF middleware rename (high impact L13 change)

  • VerifyCsrfTokenPreventRequestForgery across bootstrap/app.php, AdminPanelProvider, and custom middleware

Cache configuration (medium impact L13 change)

  • Added serializable_classes: false to config/cache.php
  • Fixed CACHE_DRIVERCACHE_STORE env variable name

Laravel 13 PHP attributes

  • #[Hidden] on User model
  • #[Scope] on all model scopes (Post, Ad, Link, NewsletterTestimonial)
  • #[Signature] and #[Description] on all 12 console commands
  • #[WithoutRelations] on job model parameters (PostOnBlueskyJob, TootPostJob, TweetPostJob)

AI integration migration

  • Replaced openai-php/laravel with laravel/ai (first-party AI SDK)
  • Replaced prism-php/prism usage with Laravel AI Agent (PostTagger) using HasStructuredOutput
  • EmbeddingService rewritten to use Laravel\Ai\Embeddings
  • TaggingService rewritten to use a PostTagger agent instead of Prism structured calls
  • Removed explicit prism-php/prism and meilisearch/meilisearch-php dependencies

Bluesky notification channel

Other

  • spatie/laravel-mailcoach-sdk ^1.0 → ^1.5 (added Laravel 13 support via Support Laravel 13 laravel-mailcoach-sdk#44)
  • Migration guards added for site_search_configs / site_search_documents tables (conflict with schema dump)
  • Fixed stale test assertions in HomeControllerTest

@freekmurze freekmurze merged commit 1039eb1 into main Mar 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant