spatie/spatie-content-api
Laravel/PHP package powering Spatie’s promotional-site content API. Fetch posts for a product or project (e.g., mailcoach) via a simple ContentApi facade and expose consistent, reusable content to your frontend or other services.
laravel-medialibrary, laravel-permission) for media handling and access control, reducing vendor lock-in if already using their stack.composer require and publishing config files.illuminate/support). Major Laravel version upgrades may require testing.Page, Product) map to business requirements? Will custom fields or relationships exceed Eloquent’s capabilities?laravel-permission suffice, or are custom guards needed?laravel-medialibrary, or is a separate solution (e.g., Cloudinary, AWS S3) preferred?laravel-permission, laravel-medialibrary).php artisan make:model to create content models with the package’s traits (HasApiTokens, HasContent).api middleware group for authentication).ContentPublished, ContentUpdated) for workflows like notifications or analytics.laravel-medialibrary) for asset handling.composer require spatie/laravel-content-api.php artisan vendor:publish --provider="Spatie\ContentApi\ContentApiServiceProvider".config/content-api.php and routes/api.php.HasApiTokens and HasContent traits.getContentAttributes().Http tests or Pest.spatie/laravel-content-api) provide troubleshooting resources.HasContent trait usage).with()).How can I help you explore Laravel packages today?