---
title: Laravel Documentation

language_tabs:
- bash
- javascript

includes:
- "./prepend.md"
- "./authentication.md"
- "./groups/*"
- "./errors.md"
- "./append.md"

logo: 

toc_footers:
- <a href="./collection.json">View Postman collection</a>
- <a href="./openapi.yaml">View OpenAPI (Swagger) spec</a>
- <a href='http://github.com/knuckleswtf/scribe'>Documentation powered by Scribe ✍</a>

---

<style>
.api-hero {
    position: relative;
    overflow: hidden;
    background: #1E1B4B;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    margin-bottom: 2.5rem;
    color: white;
}

.api-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 260px; height: 260px;
    background: rgba(124, 58, 237, 0.3);
    border-radius: 50%;
}

.api-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 200px; height: 200px;
    background: rgba(79, 70, 229, 0.2);
    border-radius: 50%;
}

.api-hero-content { position: relative; z-index: 1; }

.api-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C4B5FD;
    margin-bottom: 1.25rem;
}

.api-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    color: white !important;
    border: none !important;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.api-hero h1 span {
    background: linear-gradient(90deg, #A78BFA, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.api-hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    margin: 0 0 2rem 0;
    max-width: 520px;
    line-height: 1.7;
}

.api-hero-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.base-url-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 8px 14px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #E0E7FF;
}

.base-url-pill .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #34D399;
    flex-shrink: 0;
    box-shadow: 0 0 6px #34D399;
}

.api-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.api-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.api-badge.sanctum { background: #EDE9FE; color: #5B21B6; }
.api-badge.json    { background: #DCFCE7; color: #15803D; }
.api-badge.rest    { background: #DBEAFE; color: #1D4ED8; }
.api-badge.version { background: #FEF3C7; color: #92400E; }

.api-intro-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #F5F3FF;
    border: 1px solid #DDD6FE;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}

.api-intro-card .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.api-intro-card .text {
    color: #3730A3;
    font-size: 0.95rem;
    line-height: 1.75;
}

.api-intro-card .text strong {
    color: #1E1B4B;
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 4px;
}
</style>

<div class="api-hero">
    <div class="api-hero-content">
        <div class="api-eyebrow">
            ✦ Documentation officielle
        </div>

        <h1>Laravel <span>API</span></h1>

        <p class="api-hero-desc"></p>

        <div class="api-hero-footer">
            <div class="base-url-pill">
                <span class="dot"></span>
                http://localhost
            </div>
            <div class="api-badges">
                <span class="api-badge sanctum">🔐 Sanctum</span>
                <span class="api-badge json">⚡ JSON</span>
                <span class="api-badge rest">🔗 REST</span>
                <span class="api-badge version">📦 v1.0</span>
            </div>
        </div>
    </div>
</div>

<div class="api-intro-card">
    <div class="icon">📖</div>
    <div class="text">
        <strong>À propos de cette API</strong>
        This documentation aims to provide all the information you need to work with our API.

<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
    </div>
</div>

<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.10/lodash.min.js"></script>
<script>
    var baseUrl = "http://localhost";
</script>
<script src="js/tryitout-2.7.10.js"></script>
