PHPackages                             matteomeloni/cloudwatch-logs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. matteomeloni/cloudwatch-logs

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

matteomeloni/cloudwatch-logs
============================

Eloquent syntax for store and retrieve logs from Aws CloudWatch Logs.

1.0.5(4y ago)1163MITPHPPHP ^7.4

Since Nov 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/matteomeloni/aws-cloudwatch-logs)[ Packagist](https://packagist.org/packages/matteomeloni/cloudwatch-logs)[ Docs](https://github.com/matteomeloni/aws-cloudwatch-logs)[ RSS](/packages/matteomeloni-cloudwatch-logs/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

AwsCloudwatchLogs
=================

[](#awscloudwatchlogs)

[![Latest Version on Packagist](https://camo.githubusercontent.com/42259a0abf903267d13905ce2f43d336136c52475b62f2b72e449b1fc59a8a73/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617474656f6d656c6f6e692f636c6f756477617463682d6c6f67733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/matteomeloni/cloudwatch-logs)[![Total Downloads](https://camo.githubusercontent.com/018ac2addc4b418a2f4754621efc954b67a435937e08e8f0a716abaab8e75d60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617474656f6d656c6f6e692f636c6f756477617463682d6c6f67733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/matteomeloni/cloudwatch-logs)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Eloquent syntax for store and retrieve logs from Aws CloudWatch Logs.

- [Installation](#Installation)
- [Usage](#Usage)

    - [Mutators and Casting](#mutators-and-casting)

        - [Defining An Accessor](#defining-an-accessor)
        - [Defining A Mutator](#defining-a-mutator)
        - [Attribute Casting](#attribute-casting)
    - [Retrieving Models](#retrieving-models)

        - [Building Queries](#building-queries)

            - [Select](#select)
            - [Conditions](#conditions)
            - [Logical Grouping](#logical-grouping)
            - [Ordering](#ordering)
            - [Limit](#limit)
            - [Aggregates](#aggregates)
            - [Retrieving Single Model](#retrieving-single-model)
    - [Retrieving Single Model](#retrieving-single-model)
    - [Store New Log](#store-new-log)
    - [Requirements](#requirements)

Installation
------------

[](#installation)

---

Via Composer

```
$ composer require matteomeloni/aws-cloudwatch-logs
```

Run

```
$ php artisan vendor:publish --provider 'Matteomeloni\CloudwatchLogs\CloudwatchLogsServiceProvider'
```

Update AWS CloudWatch Logs config in `config/aws-cloudwatch-logs.php`

Usage
-----

[](#usage)

---

Extends your model with `Matteomeloni\CloudwatchLogs\CloudWatchLogs`

```
