PHP Artsan CLI Command For Laravel

๐Ÿ”น Laravel 11 Extensions & Packages

Laravel has many useful extensions (packages) to enhance its functionality. Here are some commonly used ones:


1๏ธโƒฃ Authentication & Security

๐Ÿ”น Laravel Sanctum (API Authentication)

composer require laravel/sanctum
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
php artisan migrate

๐Ÿ“Œ Used for: Token-based API authentication.


๐Ÿ”น Laravel Breeze (Simple Authentication)

composer require laravel/breeze --dev
php artisan breeze:install
php artisan migrate

๐Ÿ“Œ Used for: Lightweight authentication (Login, Register, Forgot Password).


๐Ÿ”น Laravel Jetstream (Advanced Authentication)

composer require laravel/jetstream
php artisan jetstream:install livewire
php artisan migrate

๐Ÿ“Œ Used for: Multi-factor authentication, Team management.


2๏ธโƒฃ Database & Migrations

๐Ÿ”น Laravel Telescope (Debugging & Monitoring)

composer require laravel/telescope
php artisan telescope:install
php artisan migrate

๐Ÿ“Œ Used for: Monitoring queries, jobs, requests.


๐Ÿ”น Laravel Excel (Export & Import)

composer require maatwebsite/excel
php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider"

๐Ÿ“Œ Used for: Working with Excel/CSV files.


3๏ธโƒฃ API & Backend Development

๐Ÿ”น Laravel API Resources

composer require spatie/laravel-fractal

๐Ÿ“Œ Used for: Transforming API responses.


๐Ÿ”น Laravel Debugbar (Debugging Tool)

composer require barryvdh/laravel-debugbar --dev

๐Ÿ“Œ Used for: Debugging SQL queries, routes.


๐Ÿ”น Laravel Query Builder (Advanced Queries)

composer require spatie/laravel-query-builder

๐Ÿ“Œ Used for: Dynamic API filtering and sorting.


4๏ธโƒฃ Storage & File Upload

๐Ÿ”น Laravel Media Library (File Upload & Management)

composer require spatie/laravel-medialibrary
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider"
php artisan migrate

๐Ÿ“Œ Used for: File and image handling.


๐Ÿ”น Laravel Image Manipulation

composer require intervention/image

๐Ÿ“Œ Used for: Resizing and editing images.


5๏ธโƒฃ UI & Frontend

๐Ÿ”น Laravel Livewire (Dynamic Components)

composer require livewire/livewire

๐Ÿ“Œ Used for: Building reactive UI without JavaScript.


๐Ÿ”น Laravel Inertia.js (Vue/React Integration)

composer require inertiajs/inertia-laravel

๐Ÿ“Œ Used for: Integrating Laravel with Vue/React.


๐Ÿ”น Laravel Tailwind CSS

composer require laravel-frontend-presets/tailwindcss

๐Ÿ“Œ Used for: Tailwind CSS support in Laravel.


6๏ธโƒฃ Payment Integration

๐Ÿ”น Stripe Payment

composer require stripe/stripe-php

๐Ÿ“Œ Used for: Stripe payment gateway.


๐Ÿ”น Laravel PayPal

composer require srmklive/paypal

๐Ÿ“Œ Used for: PayPal integration.


7๏ธโƒฃ Logs & Monitoring

๐Ÿ”น Laravel Log Viewer

composer require rap2hpoutre/laravel-log-viewer

๐Ÿ“Œ Used for: Viewing logs in a browser.


๐Ÿ”น Laravel Backup (Automatic Database Backup)

composer require spatie/laravel-backup
php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"
php artisan backup:run

๐Ÿ“Œ Used for: Automating backups.


๐Ÿ”น Final Tip

Run:

composer show

To see all installed Laravel packages.

Would you like help installing a specific package? ๐Ÿš€

Leave a Reply

Your email address will not be published. Required fields are marked *