> ## Documentation Index
> Fetch the complete documentation index at: https://docs.linkx.tr/llms.txt
> Use this file to discover all available pages before exploring further.

# Laravel QR Code: QR Code Generation for Laravel Apps

> Generate SVG, PNG, WebP, and EPS QR codes in Laravel using a fluent facade, Blade component, or Artisan CLI — with built-in data types and macro support.

Laravel QR Code is a modern QR code generation package for Laravel 12+ and PHP 8.2+. This documentation covers everything from installation and configuration to advanced usage with the `QrCode` facade, Blade component, Artisan CLI, and built-in data types like WiFi, vCard, and more.

> [card] [Introduction](https://docs.linkx.tr/introduction.md)
>
> Learn what Laravel QR Code offers and how it fits into your Laravel
> application.

> [card] [Quickstart](https://docs.linkx.tr/quickstart.md)
>
> Install the package and generate your first QR code in under five minutes.

> [card] [Usage Guide](https://docs.linkx.tr/usage/facade.md)
>
> Explore the fluent `QrCode` facade API and its full range of chainable
> options.

> [card] [Data Types](https://docs.linkx.tr/data-types/overview.md)
>
> Encode WiFi credentials, vCards, geo coordinates, crypto addresses, and
> more.

## Visual showcase

Explore real vector QR codes generated directly by the package with custom shapes, gradients, multi-eye colors, and embedded logos:

![Classic blue QR code](https://mintcdn.com/laravel-qrcode/e1jio7idcPehW76b/images/showcase/classic-blue.svg?fit=max\&auto=format\&n=e1jio7idcPehW76b\&q=85\&s=eab02d970a15a6d85a33819a7028a8bb)

Classic blue (RGB)

![Dots with circle eyes QR code](https://mintcdn.com/laravel-qrcode/e1jio7idcPehW76b/images/showcase/dot-circle.svg?fit=max\&auto=format\&n=e1jio7idcPehW76b\&q=85\&s=da2f9f8de822ef0546e8861e17ec1bbc)

Dots & circle eyes

![Diagonal gradient QR code](https://mintcdn.com/laravel-qrcode/e1jio7idcPehW76b/images/showcase/gradient-diagonal.svg?fit=max\&auto=format\&n=e1jio7idcPehW76b\&q=85\&s=18531b7ffdf37ecc27522d3a179729ae)

Diagonal gradient

![Radial gradient QR code](https://mintcdn.com/laravel-qrcode/e1jio7idcPehW76b/images/showcase/gradient-radial.svg?fit=max\&auto=format\&n=e1jio7idcPehW76b\&q=85\&s=29feeebbbd7c2383bcbee28a0ff10ebe)

Radial gradient

![Multi-eye colors QR code](https://mintcdn.com/laravel-qrcode/e1jio7idcPehW76b/images/showcase/multi-eye-colors.svg?fit=max\&auto=format\&n=e1jio7idcPehW76b\&q=85\&s=4a5a62b9ba022aa8477e3ffc66265178)

Multi-eye color accents

![Logo merged QR code](https://mintcdn.com/laravel-qrcode/e1jio7idcPehW76b/images/showcase/logo-merged.svg?fit=max\&auto=format\&n=e1jio7idcPehW76b\&q=85\&s=c71ed4c39a07d30c7d0bc3a8bfaafb94)

Logo overlay (Error correction H)

## Get started in three steps

**1. Install the package**

Require the package via Composer and let Laravel auto-discover the service provider.

```bash theme={null}
composer require linkxtr/laravel-qrcode
```

**2. Publish the config file**

Publish the configuration file to customise default format, size, and error correction level.

```bash theme={null}
php artisan vendor:publish --tag=qrcode-config
```

**3. Generate your first QR code**

Use the facade, the Blade component, or the Artisan command — whichever fits your workflow.

```blade Blade Component theme={null}
<x-qr-code data="https://example.com" size="300" />
```

```php Facade theme={null}
use Linkxtr\QrCode\Facades\QrCode;

$svg = QrCode::size(300)->generate('https://example.com');
```

```bash Artisan CLI theme={null}
php artisan qr:generate "https://example.com"
```

> [!NOTE]
>
> Laravel QR Code requires **PHP 8.2+** and **Laravel 12+**. Make sure your
> environment meets these requirements before installing.

## Explore further

> [card] [Configuration](https://docs.linkx.tr/configuration/config-file.md)
>
> Customise default output format, image size, margin, and error correction level.

> [card] [Blade Component](https://docs.linkx.tr/usage/blade-component.md)
>
> Drop `<x-qr-code>` directly into your Blade views with zero extra PHP.

> [card] [Artisan CLI](https://docs.linkx.tr/usage/artisan-cli.md)
>
> Generate and save QR code files from the command line with `php artisan qr:generate`.

> [card] [Advanced Macros](https://docs.linkx.tr/advanced/macros.md)
>
> Extend the `QrCode` facade with your own reusable macros via Laravel's macro system.

> [!TIP]
>
> All output formats — SVG, PNG, WebP, and EPS — are available through the same
> fluent API. Chain `.format('png')` before `.generate()` to switch formats on
> the fly.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.