#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

Installing and Managing Composer Packages

Composer is PHP's dependency manager, and it's how Laravel itself, along with virtually every third-party package, gets pulled into a project.

Installing a Package

composer require spatie/laravel-permission

This adds the package to composer.json, downloads it into the vendor folder, and — for Laravel packages using auto-discovery — registers its service provider automatically.

Updating and Removing Packages

composer update spatie/laravel-permission
composer remove spatie/laravel-permission

composer.json and composer.lock

FilePurpose
composer.jsonDeclares required packages and version constraints
composer.lockLocks exact installed versions for consistency across environments

Publishing Package Config and Assets

php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"

With package management covered, it's worth looking at a few packages that show up in almost every serious Laravel project.

Ready to master Laravel Training Course?

Join Uncodemy's hands-on Laravel program and build real, production-ready applications.

Explore Course