Spatie Laravel Data

🌐Community
by hackbard · vlatest · Repository

Generates Laravel data structures and migrations from Spatie's Eloquent models, streamlining backend development.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add spatie-laravel-data npx -- -y @trustedskills/spatie-laravel-data
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "spatie-laravel-data": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/spatie-laravel-data"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill provides a set of tools for Laravel developers to easily retrieve data from databases using plain PHP query builders. It simplifies common database interactions, allowing you to fetch and manipulate data with less code. The package offers features like retrieving data as collections or objects, and transforming results directly within the query builder.

When to use it

  • Building a dashboard that needs to display aggregated sales data from multiple tables.
  • Creating an API endpoint that requires complex filtering and sorting of product listings.
  • Generating reports based on user activity logs stored in a relational database.
  • Quickly prototyping data retrieval logic for new features during development.

Key capabilities

  • Retrieving data as collections or objects
  • Transforming results within the query builder
  • Simplifying common database interactions with plain PHP query builders

Example prompts

  • "Fetch all active users and format their names."
  • "Retrieve the top 10 most recent orders, including customer details."
  • "Generate a list of products sorted by price, descending."

Tips & gotchas

  • Requires a Laravel environment to function.
  • Familiarity with Laravel's query builder is beneficial for optimal use.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
hackbard
Installs
3

🌐 Community

Passed automated security scans.