Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 17, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 17, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 17, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 17, 2025

      Microsoft’s allegiance isn’t to OpenAI’s pricey models — Satya Nadella’s focus is selling any AI customers want for maximum profits

      May 17, 2025

      If you think you can do better than Xbox or PlayStation in the Console Wars, you may just want to try out this card game

      May 17, 2025

      Surviving a 10 year stint in dev hell, this retro-styled hack n’ slash has finally arrived on Xbox

      May 17, 2025

      Save $400 on the best Samsung TVs, laptops, tablets, and more when you sign up for Verizon 5G Home or Home Internet

      May 17, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      NodeSource N|Solid Runtime Release – May 2025: Performance, Stability & the Final Update for v18

      May 17, 2025
      Recent

      NodeSource N|Solid Runtime Release – May 2025: Performance, Stability & the Final Update for v18

      May 17, 2025

      Big Changes at Meteor Software: Our Next Chapter

      May 17, 2025

      Apps in Generative AI – Transforming the Digital Experience

      May 17, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft’s allegiance isn’t to OpenAI’s pricey models — Satya Nadella’s focus is selling any AI customers want for maximum profits

      May 17, 2025
      Recent

      Microsoft’s allegiance isn’t to OpenAI’s pricey models — Satya Nadella’s focus is selling any AI customers want for maximum profits

      May 17, 2025

      If you think you can do better than Xbox or PlayStation in the Console Wars, you may just want to try out this card game

      May 17, 2025

      Surviving a 10 year stint in dev hell, this retro-styled hack n’ slash has finally arrived on Xbox

      May 17, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Laravel VS Code Extension Public Beta

    Laravel VS Code Extension Public Beta

    December 20, 2024

    Laravel VS Code Extension Public Beta

    VS Code has firmly established itself as the go-to editor for developers worldwide. While PHPStorm seems to be the preferred choice for Laravel developers, many, especially those transitioning from other languages, are comfortable and would prefer to do Laravel development in VS Code.

    There is some Laravel support in VS Code through various extensions, but a truly seamless and integrated experience was missing. Recognizing this need, at Laracon US 2024 the Laravel core team announced the ambitious task of creating an official VS Code extension for Laravel. The wait is finally over, as the public beta is now available.

    The new Laravel VS Code extension is set to enhance your development workflow by providing a suite of helpful features. It offers improved autocomplete, enhanced navigation with click-to-source functionality, and other tools to streamline your Laravel development experience. It can:

    • Auto-complete – for app bindings, config and environment variables, routes, models, views, and more.
    • Link directly to definitions for routes, models, and config values.
    • Warn if something’s missing, like a config value or a blade template, and sometimes suggest fixes.
    • Provide more helpful information when you hover over the code.

    Preview of the Laravel VS Code extension

    More Features

    Here is a non-exhaustive list of features covered in the extension so far:

    App Bindings

    app('auth')
    App::make('auth.driver')
    app()->make('auth.driver')
    App::bound('auth.driver')
    App::isShared('auth.driver')
    // etc
    
    • Auto-completion
    • Links directly to binding
    • Warns when binding not found
    • Hoverable

    Assets

    asset('my-amazing-jpeg.png')
    
    • Auto-completion
    • Links directly to asset
    • Warns when asset not found
    • Blade
    • Syntax highlighting

    Config

    config('broadcasting.connections.reverb.app_id');
    Config::get('broadcasting.connections.reverb.app_id');
    Config::getMany([
        'broadcasting.connections.reverb.app_id',
        'broadcasting.connections.reverb.driver',
    ]);
    config()->string('broadcasting.connections.reverb.app_id');
    // etc
    
    • Auto-completion
    • Links directly to config value
    • Warns when config not found
    • Hoverable

    Eloquent

    • Method auto-completion
    • Field auto-completion (e.g. where methods, create/make/object creation)
    • Relationship auto-completion (e.g. with method + with with array keys)
    • Sub-query auto-completion ( with with array keys + value as closure)

    Env

    env('REVERB_APP_ID');
    Env::get('REVERB_APP_ID');
    
    • Auto-completion
    • Links directly to env value
    • Warns when env not found, offers quick fixes:
    • Add to .env
    • Copy value from .env.example
    • Hoverable

    Inertia

    inertia('Pages/Dashboard');
    Inertia::render('Pages/Dashboard');
    Route::inertia('/dashboard', 'Pages/Dashboard');
    
    • Auto-completion
    • Links directly to JS view
    • Warns when view not found, offers quick fixes:
    • Create view
    • Hoverable

    Route

    route('dashboard');
    signedRoute('dashboard');
    Redirect::route('dashboard');
    Redirect::signedRoute('dashboard');
    URL::route('dashboard');
    URL::signedRoute('dashboard');
    Route::middleware('auth');
    redirect()->route('dashboard');
    // etc
    
    • Auto-completion
    • Links directly to route definition
    • Warns when route not found
    • Hoverable

    Middleware

    Route::middleware('auth');
    Route::middleware(['auth', 'web']);
    Route::withoutMiddleware('auth');
    // etc
    
    • Auto-completion
    • Links directly to middleware handling
    • Warns when middleware not found
    • Hoverable

    Translation

    trans('auth.failed');
    __('auth.failed');
    Lang::has('auth.failed');
    Lang::get('auth.failed');
    // etc
    
    • Auto-completion
    • Links directly to translation
    • Warns when translation not found
    • Hoverable
    • Parameter auto-completion

    Validation

    Validator::validate($input, ['name' => 'required']);
    request()->validate(['name' => 'required']);
    request()->sometimes(['name' => 'required']);
    // etc
    
    • Auto-completion for strings/arrays (not “|” just yet)

    View

    view('dashboard');
    Route::view('/', 'home');
    
    • Auto-completion
    • Links directly to Blade view
    • Warns when view not found, offers quick fixes:
    • Create view
    • Hoverable

    More on the roadmap

    Some things that are on the roadmap are:

    • Integration with VS Code test runner
    • Livewire support
    • Volt support
    • Pint support
    • Better autocompletion, linking, hovering, and diagnostics in Blade files

    The extension is currently in Open Beta Testing. To provide feedback or report issues, follow the support instructions provided by the Laravel core team. Your input will help shape the future of this extension and make it the best-in-class Laravel VS Code extension.

    Learn more about this extension on the marketplace and view the source code on Github.


    The post Laravel VS Code Extension Public Beta appeared first on Laravel News.

    Join the Laravel Newsletter to get all the latest
    Laravel articles like this directly in your inbox.

    Source: Read More 

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleAnnouncing Inertia 2.0: Redefining Frontend Development for Laravel
    Next Article Wirechat – Laravel Livewire chat package

    Related Posts

    Development

    February 2025 Baseline monthly digest

    May 17, 2025
    Development

    Learn A1 Level Spanish

    May 17, 2025
    Leave A Reply Cancel Reply

    Hostinger

    Continue Reading

    This AI Paper Introduces FASTCURL: A Curriculum Reinforcement Learning Framework with Context Extension for Efficient Training of R1-like Reasoning Models

    Machine Learning

    Migrate Oracle applications and databases using AWS Application Migration Service

    Databases

    Max-Severity Commvault Bug Alarms Researchers

    Security
    Yokogawa Recorder Vulnerability Could Let Attackers Hijack Critical Industrial Systems

    Yokogawa Recorder Vulnerability Could Let Attackers Hijack Critical Industrial Systems

    Development

    Highlights

    I finally found a compact smart heater that warms up any room it’s in (and it’s on sale)

    February 15, 2025

    The Dreo Smart Wall Heater is efficient and affordable, and has been keeping my family…

    How to automate medical data extraction: A quick guide

    July 12, 2024

    What graphics card do YOU have in your PC and why? — Weekend discussion 💬

    March 30, 2025

    Dark Mode and Accessibility: Finding the Right Balance

    January 23, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.