8 Awesome Laravel Development Extensions for VSCode
This article is a list of the top 8 VSCode extensions for Laravel developers, which will help you improve your work efficiency!
1. Laravel Blade Snippet
Laravel Blade Snippet The extension adds syntax for Laravel Blade to your VS Code editor Highlighting support. [Recommended learning: vscode tutorial, Programming teaching]
Some of the main functions of this extension are:
- Blade syntax highlighting
- Blade Snippets
- Emmet works in Blade templates
- Blade Format
Some additional configuration is required to ensure that the extension works as expected. In File
-> Preferences
-> Settings
and add the following to your settings.json
:
"emmet.triggerExpansionOnTab": true,"blade.format.enable": true,"[blade]": { "editor.autoClosingBrackets": "always"},
This will enable tab completion for Emmet tags if the blade formatting is enabled.
For more information on the available Snippets, be sure to check out the documentation:
2. Laravel Snippets
This is probably my personal favorite! This Laravel Snippets extension adds code snippets to the appearance of Request::
, Route::
etc.
Some supported fragment prefixes include:
- Authentication
- Broadcast
- Cache
- Configuration
- Console
- Cookie
- Encryption
- Database
- Events
- View
About available fragments For more information, be sure to check out the documentation here:
3. Laravel Blade Snippet
When you try to Isn't it annoying when you use {{ }}
in a Blade view and your entire line returns 4 spaces? Well, luckily, this Laravel Blade Snippet solves that problem!
The Laravel blade fragment extension automatically adds spacing to your blade template tags:
For more information, be sure to check out the documentation here:
4. Laravel Artisan
I personally always prefer using the command line, but I must admit this Laravel Artisan extension is awesome! It allows you to run Laravel Artisan commands directly from Visual Studio Code!
The main functions of Some are:
- Create controller, migration and other files.
- Run your own custom commands
- Manage your database
- Clear cache
- Generate keys
- View all applications Routing
- Manage your local php server for testing purposes
For more information, be sure to check out the documentation here:
5. Laravel Extra IntelliSense
ThisLaravel Extra IntelliSense extension provides auto-completion for Laravel in VSCode.
This extension has the following autocomplete features:
- Route Name and Route Parameters
- Views and Variables
- Configuration
- Translating and Converting Parameters
- Laravel Mix Functions
- Validation Rules
- View Sections and Stacks
- Environment
- Route Middleware
For more information, be sure to check out the documentation here:
6. Laravel Goto Controller
As the application grows, the number of controllers also grows, so at some point, you may end up with hundreds of controllers. Hans's wayfinding can be tedious.
This is exactly the problem Laravel-goto-controller VScode extension solves.
This extension allows you to press Alt
and click on a controller name in a route file, and it will guide you from the route to the corresponding controller file:
For more updates For more information, please view the documentation:
7. Laravel goto View
is very similar to the Laravel goto Controller extension extension, Laravel goto View VScode extension Allows you to go to View files from Controller or Route. This can save you a lot of time!
You can click to jump to the first matching Blade view file using Ctrl
or Alt
:
For more information, be sure to Check out the documentation here:
8. DotENV syntax highlighting
This is very simple, but very convenient. This DotENV VS Code extension is used to highlight the syntax of .env
files, which is very handy for finding some issues.
For more information, be sure to check this Documentation at:
Conclusion
If you like all these extensions, you can check out for Visual Studio Code's Laravel Extension Pack where you can get all the mentioned extensions as 1 bundle
The only extension not included in the package is the Laravel Blade snippet, so make sure to install it separately!
I hope this is useful to you!
Original address: https://devdojo.com/bobbyiliev/8-awesome-vs-code-extensions-for-laravel-developers
Translation address: https:// learnku.com/laravel/t/71392
[Related recommendations: laravel video tutorial]
The above is the detailed content of 8 Awesome Laravel Development Extensions for VSCode. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Laravel is a PHP framework for easy building of web applications. It provides a range of powerful features including: Installation: Install the Laravel CLI globally with Composer and create applications in the project directory. Routing: Define the relationship between the URL and the handler in routes/web.php. View: Create a view in resources/views to render the application's interface. Database Integration: Provides out-of-the-box integration with databases such as MySQL and uses migration to create and modify tables. Model and Controller: The model represents the database entity and the controller processes HTTP requests.

When developing websites using CraftCMS, you often encounter resource file caching problems, especially when you frequently update CSS and JavaScript files, old versions of files may still be cached by the browser, causing users to not see the latest changes in time. This problem not only affects the user experience, but also increases the difficulty of development and debugging. Recently, I encountered similar troubles in my project, and after some exploration, I found the plugin wiejeben/craft-laravel-mix, which perfectly solved my caching problem.

Laravel provides a comprehensive Auth framework for implementing user login functions, including: Defining user models (Eloquent model), creating login forms (Blade template engine), writing login controllers (inheriting Auth\LoginController), verifying login requests (Auth::attempt) Redirecting after login is successful (redirect) considering security factors: hash passwords, anti-CSRF protection, rate limiting and security headers. In addition, the Auth framework also provides functions such as resetting passwords, registering and verifying emails. For details, please refer to the Laravel documentation: https://laravel.com/doc

In this era of continuous technological advancement, mastering advanced frameworks is crucial for modern programmers. This article will help you improve your development skills by sharing little-known techniques in the Laravel framework. Known for its elegant syntax and a wide range of features, this article will dig into its powerful features and provide practical tips and tricks to help you create efficient and maintainable web applications.

Want to learn the Laravel framework, but suffer from no resources or economic pressure? This article provides you with free learning of Laravel, teaching you how to use resources such as online platforms, documents and community forums to lay a solid foundation for your PHP development journey from getting started to master.

To learn Laravel 6, you can get video tutorials from Laracasts (recommended), official documentation and YouTube. Recommended courses include Laracasts’ “Laravel 6 From Beginner to Mastery” and “Official Laravel 6 Tutorial” produced by the official team. When choosing a video course, consider skill level, teaching style, project experience and frequency of updates.

The Laravel framework has built-in methods to easily view its version number to meet the different needs of developers. This article will explore these methods, including using the Composer command line tool, accessing .env files, or obtaining version information through PHP code. These methods are essential for maintaining and managing versioning of Laravel applications.

When developing a Laravel application, I encountered a common but difficult problem: how to improve the security of user accounts. With the increasing complexity of cyber attacks, a single password protection is no longer enough to ensure the security of users' data. I tried several methods, but the results were not satisfactory. Finally, I installed the wiebenieuwenhuis/laravel-2fa library through Composer and successfully added two-factor authentication (2FA) to my application, greatly improving security.
