Overview Laravel 13.20 introduces a major convenience for developers by adding first-party support for image processing. Historically, handling media uploads required juggling external dependencies, configuring raw drivers, and writing multi-step storage logic. While third-party options remain robust, this new native API brings image resizing, cropping, and format conversion directly into the core framework syntax, reducing boilerplate and unifying the developer experience. Prerequisites To make the most of this tutorial, you should understand: * Basic routing and controller architecture in the Laravel framework. * PHP file handling concepts. * How to manage packages via Composer. Key Libraries & Tools * **Laravel 13**: The PHP web framework hosting the new first-party image manipulation features. * **Intervention Image**: The underlying PHP library that Laravel uses as its core engine. * **Spatie Media Library**: An advanced media-to-model binding package for complex collection management. Code Walkthrough Let us compare the traditional, multi-step approach with the new native syntax. The Manual Route: Intervention Image Previously, managing a thumbnail with raw Intervention Image required manual driver setup, file name generation, and explicit step-by-step encoding: ```php // Using Intervention Image directly $manager = new ImageManager(new Driver()); $image = $manager->read($request->file('photo')); $thumbnail = $image->scale(width: 300); $encoded = $thumbnail->toWebp(); Storage::disk('public')->put('thumbnails/photo.webp', $encoded); ``` This works. However, it forces you to manage intermediate state variables and interface directly with driver specifics. The Native Solution: Laravel 13.20 The new API simplifies this process by integrating image manipulations straight into the request and file upload flow: ```php // The streamlined Laravel way $request->file('photo') ->storeProcessed('thumbnails', function ($image) { $image->width(300)->format('webp'); }); ``` This chained approach eliminates manual driver instantiation and works natively with Laravel's file storage layer. Syntax Notes The new helper methods chain directly onto the uploaded file instance. Behind the scenes, Laravel resolves the active image driver configuration (like GD or Imagick), processes the closure, and saves the file in one unified transaction. It acts as a clean, fluent wrapper. Practical Examples Use the native API for: * Creating instant `.webp` thumbnails during user profile uploads. * Standardizing incoming catalog photographs to uniform dimensions. * Stripping metadata to optimize storage efficiency on simple blogs. Tips & Gotchas Remember that this native tool does not replace Spatie Media Library. While Laravel handles the physical file conversion, it does not manage database relations, multiple collections, or polymorphic model links. Furthermore, you must still run `composer require intervention/image` in your project, as Laravel relies on it under the hood.
Laravel
Products
Nov 2020 • 1 videos
Minimal activity. Laravel mentioned in 1 videos from 1 sources.
Dec 2020 • 2 videos
Minimal activity. Laravel mentioned in 2 videos from 1 sources.
Feb 2021 • 13 videos
High activity month for Laravel. Laravel among the most active voices, with 13 videos across 1 sources.
Mar 2021 • 2 videos
Minimal activity. Laravel mentioned in 2 videos from 1 sources.
Jun 2021 • 5 videos
Steady coverage of Laravel. Laravel contributed to 5 videos from 1 sources.
Jul 2021 • 4 videos
Lighter month. Laravel covered Laravel across 4 videos.
Aug 2021 • 5 videos
Steady coverage of Laravel. Laravel and Laravel Daily contributed to 5 videos from 2 sources.
Sep 2021 • 7 videos
Steady coverage of Laravel. Laravel contributed to 7 videos from 1 sources.
Oct 2021 • 2 videos
Minimal activity. Laravel mentioned in 2 videos from 1 sources.
Nov 2021 • 1 videos
Minimal activity. Laravel mentioned in 1 videos from 1 sources.
Jan 2022 • 2 videos
Minimal activity. Laravel mentioned in 2 videos from 1 sources.
Feb 2022 • 1 videos
Minimal activity. Laravel mentioned in 1 videos from 1 sources.
Mar 2023 • 2 videos
Minimal activity. Laravel mentioned in 2 videos from 1 sources.
Apr 2023 • 2 videos
Minimal activity. Laravel mentioned in 2 videos from 1 sources.
Jul 2023 • 12 videos
High activity month for Laravel. Laravel among the most active voices, with 12 videos across 1 sources.
Nov 2023 • 4 videos
Lighter month. Laravel covered Laravel across 4 videos.
Dec 2023 • 2 videos
Minimal activity. Laravel mentioned in 2 videos from 1 sources.
Jan 2024 • 3 videos
Lighter month. Laravel covered Laravel across 3 videos.
Feb 2024 • 7 videos
Steady coverage of Laravel. Laravel contributed to 7 videos from 1 sources.
Mar 2024 • 4 videos
Lighter month. Laravel covered Laravel across 4 videos.
Apr 2024 • 2 videos
Minimal activity. Laravel mentioned in 2 videos from 1 sources.
May 2024 • 9 videos
High activity month for Laravel. Laravel among the most active voices, with 9 videos across 1 sources.
Jun 2024 • 5 videos
Steady coverage of Laravel. Laravel contributed to 5 videos from 1 sources.
Jul 2024 • 9 videos
High activity month for Laravel. Laravel among the most active voices, with 9 videos across 1 sources.
Aug 2024 • 5 videos
Steady coverage of Laravel. Laravel contributed to 5 videos from 1 sources.
Sep 2024 • 12 videos
High activity month for Laravel. Laravel among the most active voices, with 12 videos across 1 sources.
Oct 2024 • 3 videos
Lighter month. Laravel covered Laravel across 3 videos.
Nov 2024 • 8 videos
Steady coverage of Laravel. Laravel contributed to 8 videos from 1 sources.
Dec 2024 • 6 videos
Steady coverage of Laravel. Laravel contributed to 6 videos from 1 sources.
Jan 2025 • 2 videos
Minimal activity. Laravel mentioned in 2 videos from 1 sources.
Feb 2025 • 9 videos
High activity month for Laravel. Laravel among the most active voices, with 9 videos across 1 sources.
Mar 2025 • 9 videos
High activity month for Laravel. Laravel and Laravel Daily among the most active voices, with 9 videos across 2 sources.
Apr 2025 • 5 videos
Steady coverage of Laravel. Laravel contributed to 5 videos from 1 sources.
May 2025 • 6 videos
Steady coverage of Laravel. Laravel contributed to 6 videos from 1 sources.
Jun 2025 • 4 videos
Lighter month. Laravel covered Laravel across 4 videos.
Jul 2025 • 5 videos
Steady coverage of Laravel. Laravel contributed to 5 videos from 1 sources.
Aug 2025 • 12 videos
High activity month for Laravel. Laravel among the most active voices, with 12 videos across 1 sources.
Sep 2025 • 3 videos
Lighter month. Laravel covered Laravel across 3 videos.
Oct 2025 • 6 videos
Steady coverage of Laravel. Laravel contributed to 6 videos from 1 sources.
Nov 2025 • 17 videos
High activity month for Laravel. Laravel Daily and Laravel among the most active voices, with 17 videos across 2 sources.
Dec 2025 • 33 videos
High activity month for Laravel. Laravel and Laravel Daily among the most active voices, with 33 videos across 2 sources.
Jan 2026 • 23 videos
High activity month for Laravel. Laravel Daily, Laravel, and AI Coding Daily among the most active voices, with 23 videos across 3 sources.
Feb 2026 • 27 videos
High activity month for Laravel. Laravel, Laravel Daily, and AI Coding Daily among the most active voices, with 27 videos across 3 sources.
Mar 2026 • 30 videos
High activity month for Laravel. AI Coding Daily, Laravel Daily, and Laravel among the most active voices, with 30 videos across 3 sources.
Apr 2026 • 8 videos
Steady coverage of Laravel. Laravel Daily and AI Coding Daily contributed to 8 videos from 2 sources.
May 2026 • 17 videos
High activity month for Laravel. AI Coding Daily and Laravel Daily among the most active voices, with 17 videos across 2 sources.
Jun 2026 • 10 videos
High activity month for Laravel. AI Coding Daily and Laravel Daily among the most active voices, with 10 videos across 2 sources.
Jul 2026 • 8 videos
Steady coverage of Laravel. AI Coding Daily and Laravel Daily contributed to 8 videos from 2 sources.
- 19 hours ago
- 1 day ago
- 2 days ago
- 4 days ago
- 6 days ago
Tencent's Free AI Model Shakes Up the Leaderboard Tencent Hy3 recently exited preview and hit public platforms like OpenRouter entirely free of charge. In the past, free tier models struggled to even register on competitive LLM coding benchmarks, typically scoring only one or two points. Let's break down how this new contender performs across a rigorous five-project benchmark to see if it stands up to established, premium models. The Core Tech Stack Divide When we look at the results, the model shows a massive performance split depending on the technology stack. In a standard Laravel API generation test, Hy3 completed the prompt in under two minutes with a perfect score on three out of five runs. The failed attempts struggled with N+1 query optimization, a performance issue rather than broken syntax. However, Filament—a less common admin panel framework—proved to be its Achilles' heel. Because eastern Chinese models rarely train heavily on smaller frameworks, Hy3 failed miserably here, scoring zero points overall. It proves a vital point: social media hype about a model being "good" or "bad" always depends on the specific codebases used for training. Shining in React and Handling Edge Cases Where the model truly shines is with mainstream web standards. Tested on a React and TypeScript component creation prompt with Playwright tests, Hy3 scored a four out of five. It generated clean code faster than the average of modern frontier models, taking just about one minute per run. Even more surprising was the CSV importer challenge, which tests whether an LLM can anticipate complex edge cases without explicit prompting. Hy3 earned a 1.4 out of 5, matching the performance of Claude 3.5 Sonnet on the exact same project. Comparing a completely free model to Anthropic's expensive API tier reveals just how fast the performance gap is closing. The Verdict on Tencent's New Challenger With a total leaderboard score of 10.4, Tencent Hy3 sits near the bottom of the elite bracket. Yet, it managed to overtake Qwen 2.5 (referred to as Quen 3.7) and ran neck-and-neck with DeepSeek. For a model that costs absolutely nothing until its free tier expires on July 21st, it delivers highly respectable code. Just be sure to run automated tests to catch the occasional optimization error.
Jul 8, 2026The Legacy Code Refactoring Challenge When legacy Laravel code piles up into an unmanageable mess, developers look to artificial intelligence for rescue. The return of Fable 5 sparked massive curiosity across the programming community. To test if this highly-touted model justifies its premium price, I pitted it directly against Opus 4.8 on two demanding codebases. Under the Hood: Two Distinct Architectural Philosophies When handed a bloated controller, Opus 4.8 played it safe. It refactored validation logic into a clean Laravel form request class. This is standard, dependable practice. However, Fable 5 took a more aggressive approach. It bypassed the HTTP-dependent form request and moved the business logic validation straight into a dedicated action class. This architectural choice makes the action class a reusable black box, perfect for queue jobs or automated tests. It shows Fable is not afraid to modify code structures without explicit handholding. Yet, this ambition comes with a strange blind spot: Fable failed to write any automated regression tests to verify its changes. Opus, by contrast, generated nearly 200 lines of robust test cases. Loose Prompts and database Transaction Failures Removing the training wheels reveals the true limits of these models. In a second test, I stripped away detailed instructions, providing only a vague one-line prompt to tidy up the repository. Both models successfully identified the bloated controller, but their executions differed wildly. Fable maintained the original application behavior perfectly under external test suites. Opus slipped up. It bundled crucial side effects inside a database transaction, failing an external test. The Verdict: Fable is Hard to Justify Fable runs incredibly hot. It demands 2.5 times the API cost of Opus, clocking in at $8.00 for a single task compared to Opus's $3.35. For most developers, this price hike is a dealbreaker. Unless you absolutely require automated, deep architectural decision-making, the dependable Opus 4.8 remains the smarter, more economical choice for daily development.
Jul 2, 2026The Quest for Cheaper Monitoring Developers constantly search for ways to slash their recurring software-as-a-service bills. For Laravel developers, exception and application monitoring often comes with a steep price tag. While Laravel Pulse offers a premium first-party experience, its tier-based pricing can quickly escalate for side projects. Night Owl steps into this space as an intriguing, budget-conscious alternative designed to run on top of your own infrastructure. Offloading Storage to Your Own Database Night Owl pulls off its low starting cost of five dollars per month by fundamentally altering where your telemetry data lives. Instead of storing logs and events on its own servers, the service leverages the open-source Laravel Pulse agent and routes the outgoing data directly to your personal database. Users simply connect their own external PostgreSQL instances, such as Supabase or Neon, allowing them to utilize free hosting tiers for their storage needs. The Fine Print of DIY Infrastructure This clever architecture keeps costs rock-bottom, but it introduces real maintenance overhead. To keep your database from bloating, you must configure a strict two-day data retention policy and run manual pruning cron jobs. Furthermore, relying on shared free-tier databases means your dashboard load times will suffer during high-traffic periods. Setting up the tool is also far from a one-click affair. Unlike the seamless, single-button installation of Laravel Pulse on Forge, configuring Night Owl requires provisioning database credentials, configuring server-side daemons, and troubleshooting environment conflicts. Unlocking Side Project Viability If you have the technical patience to manage your own database connections, Night Owl provides a highly functional, visually familiar interface that closely mirrors its high-priced competitor. It represents a broader, exciting trend of micro-SaaS tools finding success by letting users supply their own database credentials. For indie hackers managing low-traffic applications, this approach is a viable pathway to nearly free application monitoring.
Jul 2, 2026The Silent Coder in Your Terminal Ponytail has rapidly captured the developer community's attention, racking up 67,000 GitHub stars for its promise of leaner, cheaper AI-driven development. Operating as a specialized skill for AI agents like Claude, it aims to act as the ultimate minimalist developer—the quiet engineer who writes only what is absolutely necessary. It seeks to curb the expensive, verbose over-engineering habits common in modern large language models. Cutting the Architectural Fat When put to the test building a Laravel API, the tool delivered on its financial promises. Running Claude 3 Opus on a standard prompt cost $1.72 without the plugin. Introducing the plugin dropped that cost to $1.33. This efficiency stems from a strict adherence to the "You Ain't Gonna Need It" (YAGNI) principle. While the baseline model over-engineered the solution by generating separate custom helper functions and redundant code comments, the plugin kept the code inline, clean, and direct. It avoided unnecessary abstractions that developers rarely use in practice. The Real Cost of Cheaper Code However, this aggressive optimization introduces a serious compromise in code safety. To achieve brevity, the tool combined separate test files into a single, less thorough test suite. While the baseline execution produced deep, structured assertions checking specific database query behaviors, the optimized version skipped these details entirely. It omitted critical validation, such as verifying protection against N+1 query issues. Although the core API functionality passed external evaluation benchmarks, the automated test suite left behind by the plugin was dangerously thin. A Disconnect in Safety Claims This gap reveals a major contradiction in the tool's marketing. The developers claim the plugin is "100% safe," but skipping deep assertions to save tokens is a structural liability. In a production environment, missing tests eventually lead to broken deployments when future developers refactor the code. The Final Verdict For solo developers rapidly prototyping on a tight API budget, the tool offers undeniable speed and cost benefits. However, for team environments where future maintainability and comprehensive test coverage are non-negotiable, it cuts too many corners. It remains a powerful optimization utility, but one that requires active developer oversight.
Jun 30, 2026The Mobile Dilemma for Backend Engineers For years, backend web developers faced a steep mountain when attempting to build mobile applications. Moving away from PHP meant learning entirely new paradigms, environments, and languages. Today, the landscape is highly fragmented. Laravel developers, in particular, now have three viable paths for mobile development: React Native, Flutter, and the emerging NativePHP. Each option demands a different trade-off between the developer's existing skillset and current market demands. Three Paths with Distinct Paradigms These three frameworks approach mobile development from fundamentally different angles: * **React Native**: Powered by TypeScript and the Expo framework, this option targets web developers who already know JavaScript. It compiles to native components, making it a powerful, highly popular choice. * **Flutter**: Relying on Dart, Google's framework operates as its own distinct ecosystem. In Flutter, almost everything is a widget. It offers high performance but requires learning a completely unique language and paradigm. * **NativePHP**: The most exciting development for backend purists. This framework lets you compile a standard Laravel application—complete with Livewire or Vue.js—directly into an Android or iOS build. You write standard controller logic, render blade views with Tailwind CSS, and let the framework handle the mobile compilation. The Job Market Gap While NativePHP offers the lowest barrier to entry for a PHP developer, the job market tells a different story. Job data on platforms like Upwork reveals a massive commercial gap. React Native leads the market in sheer volume, closely followed by Flutter. In contrast, dedicated job postings for NativePHP are virtually non-existent. Deciding Your Stack If your goal is immediate marketability or client work, React Native remains the safest bet. If you want a highly performant, custom UI and do not mind learning Dart, Flutter is an exceptional choice. However, for solo developers and Laravel purists looking to ship an internal tool or a SaaS companion app quickly, NativePHP represents an incredibly fast path to production without leaving your comfort zone.
Jun 30, 2026AI coding rules shrink as models mature For months, developers maintained extensive lists of custom rules to keep AI agents from breaking Laravel codebases. Early models stumbled on PHP enums, generated duplicate migration timestamps, and ignored frontend builds. Today, frontier LLMs like Claude 3.5 Sonnet and GPT-4o have improved to the point where many manual constraints are obsolete. They handle basic casting, migration ordering, and self-debugging out of the box. Instead of writing passive rule files, we can now offload safety checks to automated tooling and robust planning phases. Prerequisites To get the most out of this modern workflow, you should have a solid grasp of: * PHP 8.x and Laravel framework architecture * AI CLI tools like Claude Code or Codex CLI * Basic bash scripting and JSON configuration Key libraries and tools * **Laravel Boost**: An official tool by Ashley Hindel that injects deep, context-aware Laravel rules directly into your agent files. * **Vasque**: A managed websocket alternative to Laravel Reverb or Pusher, also built by Hindel, perfect for handling heavy real-time data efficiently. * **context7**: A global CLI documentation tool used as a fallback source when looking up Laravel docs. Let hooks run your frontend builds One persistent headache with AI agents is their tendency to modify Blade templates or Tailwind styles without rebuilding assets. Instead of begging the LLM to run `npm run build` in a text file, you can enforce this behavior using post-tool execution hooks in Claude Code or Codex CLI. Here is how you configure a two-stage bash script check inside your global Claude directory. First, create the change detector script (`front_end_detect.sh`): ```bash #!/bin/bash Detect changes in frontend assets if git diff --name-only | grep -E '\.(blade\.php|css|js)$' > /dev/null; then touch .claude_frontend.flag fi ``` Next, create the execution script (`front_end_build.sh`): ```bash #!/bin/bash Run build if flag exists if [ -f .claude_frontend.flag ]; then echo "Frontend changes detected. Rebuilding..." npm run build rm .claude_frontend.flag fi ``` Configuring settings and hook files To execute these scripts automatically, register them in your tool's configuration. For Claude Code, add this to your `settings.json`: ```json { "hooks": { "post_tool_use": { "write_file": "/path/to/front_end_detect.sh", "edit_file": "/path/to/front_end_detect.sh" }, "stop": "/path/to/front_end_build.sh" } } ``` For Codex CLI, define the absolute paths in `hooks.json`: ```json { "post_tool_use": { "command": "/absolute/path/to/front_end_detect.sh" }, "stop": { "command": "/absolute/path/to/front_end_build.sh" } } ``` Keep rules for niche ecosystems While standard Laravel patterns are baked deeply into modern models, niche ecosystems still need help. Filament v3 remains a challenge. LLMs often fallback to obsolete v2 patterns, like placing forms and tables directly inside resource files instead of separating them into distinct classes. For these specialized packages, keep your custom guidelines active until training data catches up.
Jun 29, 2026The Economics of Upfront Planning in AI Projects Many developers make the mistake of jumping directly into writing code with AI agents. They treat the prompt like a magic wand, asking for entire applications in a single shot. This approach inevitably fails on complex, real-world tasks. Structuring an unstructured client specification into concrete development phases before generating a single line of code changes the entire dynamic. When you build a highly detailed plan first using a premium frontier model, you can run the actual code implementation using faster, cheaper models like DeepSeek or Composer. The upfront investment in a premium model pays for itself by preventing downstream execution errors. Setting Up the Local Workspace and Tech Stack Before initiating a planning prompt, you must establish your project's local environment. This gives the AI agent immediate context regarding your directory structures and chosen frameworks. For a Laravel web application, you can use the official installer to configure your foundation. Running the installer with the `laravel-boost` package automatically generates critical context files: * `Claude.md`: Defines framework rules, coding styles, and context limits. * `agents.md`: Lists framework-specific developer tools, CLI commands, and directory layouts. Once the framework is ready, save the raw client requirements in a dedicated documentation folder (e.g., `docs/project_description.md`) and initialize a Git repository to track changes. Executing the Planning Prompt with Claude Code With your workspace configured, run Claude Code to analyze your documentation and compile the development phases. Switch the terminal utility into "high effort" mode to utilize Claude Opus. ```bash Initialize Claude Code session with High Effort enabled claude --high-effort ``` Provide a comprehensive prompt instructing the agent to parse your project description, raise clarifying questions, and export a structured plan into `docs/project_phases.md` containing specific verification tests for every task. ```markdown Example Planning Prompt Structure Review the client specifications in docs/project_description.md. Identify any ambiguous requirements and prompt me for clarification. Generate a step-by-step implementation plan including: - Database schemas and migrations - Backend business logic components - UI components - Exact unit/feature tests required to verify each task Output the final structure in markdown format to docs/project_phases.md. ``` Handling Clarification Questions in the Terminal Claude Code offers an interactive user-prompt interface for answering questions during execution. Instead of halting or making assumptions, the terminal UI presents a structured, navigable panel listing critical questions. Answer each requirement question carefully. If you do not have immediate answers, pause the CLI, export the list of questions for your client, and resume the planning phase once you have confirmed their preferences. Syntax Notes: Structuring Acceptable Test Criteria The generated `docs/project_phases.md` file should exceed 500 lines of highly detailed, actionable markdown. Pay close attention to how the agent structures acceptance criteria for individual tasks: ```markdown Task 1.2: Users Table Migration - **Objective**: Create the users database schema. - **Testing Criteria**: - Assert `email` field is unique in database - Verify password hash is applied via Eloquent mutator ``` Defining explicit verification tests within the task specifications ensures that whatever cheaper model you select for the implementation phase knows exactly how to prove its code works before presenting it for human review. Managing Your Resource Budget during Planning Runs Executing high-effort planning runs on premium models consumes a measurable portion of your LLM platform quotas. A single comprehensive planning session typically uses about 7% of an Anthropic $20 monthly subscription tier, equivalent to roughly $1 in direct API billing. This small cost is highly efficient, saving hours of manual debugging and reducing the total token count needed for subsequent development runs.
Jun 25, 2026The Flaw in Binary LLM Benchmarks Most developer benchmarks score Large Language Models (LLMs) on a binary scale: either a generated codebase passes every unit test, or it gets a zero. This approach misses the nuance of software development. To address this, I introduced a CSV importer challenge written in PHP and Laravel designed specifically to expose edge cases. The test suite asserts non-happy paths like handling invalid UTF-8 data, handling rows with incorrect column counts, and processing massive files without crashing. When evaluated this way, even the strongest models faltered, but their failures were not equal. Scoring with Fraction Points To capture true capabilities, we must transition to a fractional scoring system. Under a binary system, a model failing 1 out of 29 tests receives the same zero rating as a model failing 10 tests. The new grading rubric awards a full point for a flawless sheet, 0.5 points for one failed test, 0.2 points for two failures, and zero points only when three or more errors occur. This framework separates frontier models from the rest. Out of five rigorous runs, GPT-5.5 and Opus 4.8 each scored 4.5 out of 5 points, failing only a single edge case in their worst attempts. The Price-to-Performance Reality Check While frontier models deliver superior reliability on edge cases, their operating costs remain steep. However, GPT-5.4 emerged as an exceptionally strong mid-tier option. It scored slightly below the top tier but remains twice as cheap as GPT-5.5 for API input and output. Conversely, some models fail the economic test entirely. Gemini 3.5 Flash racked up a staggering $0.73 per prompt. That is astronomically expensive for a flash-tier model, costing more than highly capable eastern alternatives like MiniMax M3 or DeepSeek-4Flash. Final Verdict If your engineering workflow demands absolute precision with complex edge cases, paying the premium for Opus 4.8 or GPT-5.5 remains necessary. For budget-conscious pipelines, GPT-5.4 and DeepSeek-4Flash offer the best balance of reasoning and cost. Avoid Gemini 3.5 Flash for API-driven code generation until its pricing structure aligns with actual performance.
Jun 23, 2026Architecture for pure API development Most official Laravel starter kits focus on full-stack development, bundling React, Vue, or Livewire. This unofficial kit strips away the web layer entirely. By removing Laravel Fortify, it eliminates the complexity of a "black box" authentication engine, giving you direct control over controller logic. It prioritizes a clean, Postman-ready experience where JSON is the only language spoken. Implementation and automation Created using Claude (specifically the Opus and Fable models), this kit demonstrates how AI can architect complex boilerplate. You can initialize a project using the standard installer: ```bash laravel new my-api --github="LaravelDaily/api-starter-kit" ``` When prompted for a starter kit, choose the custom repository option. One specific manual step remains: the installer may still ask about Node.js or NPM. Since this is a pure API, you should select **No** to ensure your environment remains free of front-end dependencies. Authentication and routing logic The kit uses Laravel Sanctum for token-based authentication. All routes are versioned under a `v1` namespace by default, reflecting professional API standards. You can view your endpoints by running `php artisan route:list`. The structure includes: * **Public Routes**: Registration, login, and password reset. * **Protected Routes**: User profile retrieval, logout, and token management. ```php // Example of the v1 Route Prefixing Route::prefix('v1')->group(function () { Route::post('/register', [AuthController::class, 'register']); Route::middleware('auth:sanctum')->get('/user', [UserController::class, 'show']); }); ``` Integrated documentation Maintaining documentation is often the first thing to fail in fast-paced projects. This kit solves that by including Scramble, which automatically generates OpenAPI documentation from your code. When you visit the root URL, the app returns a JSON response containing a link to this auto-generated documentation, ensuring your API is self-describing from day one. Strategy and best practices Avoid adding global logic to the `bootstrap/app.php` file if it only applies to specific versions. Instead, leverage the versioned controllers and form requests provided in the `App\Http\Controllers\Api\V1` namespace. This keeps your application scalable for when `V2` inevitably arrives.
Jun 19, 2026The Laravel ecosystem moves fast, and staying current with its starter kits is a full-time job. These packages provide the scaffold for your next big idea, but they are no longer just static boilerplate. Recent updates have transformed them into sophisticated development environments that bake in security and code quality from the very first command. If you haven't run `laravel new` in the last few weeks, you're missing out on integrated static analysis and modern authentication patterns. Granular control over authentication scaffolds The Laravel installer now offers unprecedented control over your initial authentication setup. Instead of a take-it-or-leave-it approach, you can toggle specific components like registration, email verification, and even password confirmation directly from the CLI. This prevents code bloat by ensuring you only generate the controllers and views you actually intend to use, keeping your codebase lean from day one. Larastan enters the default developer workflow Static analysis is no longer an optional extra. Larastan, the PHPStan wrapper for Laravel, is now included by default in the `require-dev` section of all starter kits. This means you can immediately run `phpstan analyze` to catch type mismatches and missing return types. It’s a vital safety net, especially as more developers integrate AI agents into their coding workflow, where manual oversight of every line becomes difficult. Native Passkey support for secure logins Authentication is shifting away from traditional passwords. Modern starter kits now include native support for Passkeys, allowing users to sign in using biometric data or hardware keys. This feature requires a secure HTTPS connection, but once enabled through tools like Herd, it provides a frictionless login experience that is significantly more secure than traditional credential-based systems. Improved team dynamics and invitation flows The team management features, largely managed by Wendell Adriel, have received a major polish. The invitation flow is now more intelligent, handling both existing account holders and new users with specific UI banners for pending invites. Furthermore, a long-requested feature has finally arrived: team members can now choose to leave a team themselves, rather than relying on a team owner to remove them. Staying on top of these changes ensures your projects start with the best possible foundation. Whether it is saving tokens with the PAO testing package or exploring new IDE integrations in Laravel Boost, these tools are designed to keep you productive.
Jun 14, 2026