Laravel Cloud API Documentation

website·Indexed 18 days ago

https://laravel.com/docs/12.x

API reference for Laravel Cloud, providing endpoints to manage instances, WebSocket clusters, WebSocket applications, object storage buckets, and organization metadata, as well as usage and metrics tracking.

Tokens
977.1K
Snippets
6K
Records
8.3K
Agent score
95%

What's inside Laravel Cloud API

  1. Overview of Laravel Cloud API and CLI

    Laravel Cloud provides a REST API and a companion CLI that allow developers to manage their entire infrastructure programmatically. This enables treating infrastructure as code, automating repetitive tasks, and integrating Laravel Cloud into existing development workflows, CI/CD pipelines (like GitHub Actions), and AI agents. Key capabilities include provisioning databases, checking instance counts, querying 'scale to zero' status, and managing environment lifecycles.
  2. Overview of Laravel Context

    Laravel Context allows you to capture, retrieve, and share information throughout requests, jobs, and commands. This information is automatically appended as metadata to any log entries written during the execution, enabling deeper insight into execution history and distributed system tracing. Context is also automatically shared with queued jobs; when a job is dispatched, the current context is captured and hydrated back into the context when the job executes.
  3. Overview of Laravel Homestead

    Laravel Homestead is an official, pre-packaged Vagrant box that provides a complete development environment without requiring the installation of PHP, web servers, or other server software on the local host machine. It runs on Windows, Mac, and Linux.

    Included Software:

    • OS: Ubuntu 18.04
    • Languages/Runtimes: PHP (5.6 through 7.4), Node (with Yarn, Bower, Grunt, Gulp)
    • Databases: MySQL, PostgreSQL (9.6-12), Sqlite3, Redis, Memcached
    • Web Server: Nginx
    • Tools: Git, Composer, Beanstalkd, Mailhog, avahi, ngrok, Xdebug, XHProf/Tideways/XHGui, wp-cli

    Optional Software: Apache, Blackfire, Cassandra, Chronograf, CouchDB, Crystal & Lucky Framework, Docker, Elasticsearch, Gearman, Go, Grafana, InfluxDB, MariaDB, MinIO, MongoDB, MySQL 8, Neo4j, Oh My Zsh, Open Resty, PM2, Python, RabbitMQ, Solr, and Webdriver & Laravel Dusk Utilities.

  4. Overview of available Laravel Telescope Watchers

    Laravel Telescope provides several watchers to monitor application behavior:

    • Cache Watcher: Records cache hits, misses, updates, and forgets.
    • Command Watcher: Records Artisan command execution details.
    • Dump Watcher: Records dump() calls (requires the browser tab to be open).
    • Event Watcher: Records dispatched events (ignores internal framework events).
    • Exception Watcher: Records reportable exceptions and stack traces.
    • Gate Watcher: Records gate and policy check results.
    • Job Watcher: Records dispatched job data and status.
    • Log Watcher: Records application log data.
    • Mail Watcher: Provides in-browser email previews and .eml downloads.
    • Model Watcher: Records Eloquent model changes (created, updated, restored, deleted).
    • Notification Watcher: Records sent notifications.
    • Query Watcher: Records SQL queries and execution time.
    • Redis Watcher: Records Redis commands.
    • Request Watcher: Records HTTP request and response data.
    • Schedule Watcher: Records scheduled task output.
  5. Overview of Laracon conferences

    Laracons are official 2-day conferences designed for developers to learn, share, and network with the Laravel community. These events are held globally in various locations such as Australia (AU), India, and Europe (EU).
  6. Introduction to Laravel Service Container and Dependency Injection

    The Laravel service container is a tool for managing class dependencies and performing dependency injection. Dependency injection allows class dependencies to be 'injected' into a class via its constructor or setter methods, making it easier to swap implementations or mock dependencies during testing.
    namespace App	Http	Controllers;
    
    use App	Repositories	UserRepository;
    
    class UserController extends Controller
    {
        protected $users;
    
        // UserRepository is injected via the constructor
        public function __construct(UserRepository $users)
        {
            $this->users = $users;
        }
    
        public function show($id)
        {
            $user = $this->users->find($id);
            return view('user.profile', ['user' => $user]);
        }
    }
  7. Overview of Laravel Logging Channels

    Laravel logging is based on "channels", where each channel represents a specific destination for log information. It uses the Monolog library under the hood. By default, Laravel uses the stack channel to aggregate multiple log channels into one.
  8. Overview of Laravel Homestead

    Laravel Homestead is an official, pre-packaged Vagrant box that provides a complete PHP development environment. It allows developers to run a virtual machine with Nginx, PHP, MySQL, and other server software without installing them directly on the host machine. It is compatible with Windows, macOS, and Linux.
  9. Overview of Laravel MCP

    Laravel MCP is a package (laravel/mcp) that allows you to build a Model Context Protocol (MCP) server within your Laravel application. It enables AI coding agents and clients (such as Claude, Cursor, or GitHub Copilot) to have structured access to your app's schema, routes, data, and actions, reducing AI hallucinations by replacing guessing with actual queries. The server exposes three main capabilities:

    • Tools: Callable functions the agent can invoke (e.g., querying orders).
    • Resources: Readable data exposed via URI (e.g., config files or database records).
    • Prompts: Reusable conversation templates for consistent agent behavior.
  10. Overview of Laravel Homestead

    Laravel Homestead is a pre-packaged Vagrant box that provides a complete PHP development environment (including Nginx, PHP, MySQL, PostgreSQL, Redis, and Memcached) without requiring server software to be installed on the local host machine. It runs on Windows, macOS, and Linux. Note: Homestead is considered a legacy package; Laravel Sail is the recommended modern alternative.
  11. Overview of Laravel Hashing

    The Laravel Hash facade provides secure Bcrypt and Argon2 hashing for storing user passwords. Bcrypt is the default for Laravel application starter kits. These algorithms are designed to be computationally expensive (slow) to protect against brute force and rainbow table attacks.
  12. Overview of Moat GitHub security reviewer

    Moat is a read-only security review tool that inspects the security posture of a GitHub user, organization, or repository. It surfaces settings that are disabled or not configured according to common recommendations, providing a report with suggestions to improve security. It is a checklist tool and does not modify settings, harden repositories, or scan dependencies (it is not a supply chain security product).