الصفحات · Laravilt
Resource API
Expose resources as REST API endpoints
Expose your resources as REST API endpoints with automatic documentation.
Basic API Configuration
php
API Columns
php
Column Types
| Type | Description |
|---|---|
integer | Integer values |
string | String values |
decimal | Decimal/float values |
boolean | Boolean values |
datetime | DateTime values |
API Methods
| Method | Description |
|---|---|
description() | API endpoint description |
authenticated() | Require authentication |
columns() | Define available columns |
allowedFilters() | Filterable fields |
allowedSorts() | Sortable fields |
allowedIncludes() | Includable relationships |
actions() | Custom API actions |
Related
- API Actions - Custom API actions