PHPackages                             gurgentil/laravel-storable - 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. [Database &amp; ORM](/categories/database)
4. /
5. gurgentil/laravel-storable

ActiveLibrary[Database &amp; ORM](/categories/database)

gurgentil/laravel-storable
==========================

A Laravel package to create storage transformers for your models.

1.0.0(5y ago)058MITPHPPHP ^7.2

Since Dec 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/gurgentil/laravel-storable)[ Packagist](https://packagist.org/packages/gurgentil/laravel-storable)[ Docs](https://github.com/gurgentil/laravel-storable)[ RSS](/packages/gurgentil-laravel-storable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel Storable
================

[](#laravel-storable)

[![Latest Version](https://camo.githubusercontent.com/4df90f59ea11bb437e996dfcab1e0381a7489b3d15154d41b008805822c2420c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f67757267656e74696c2f6c61726176656c2d73746f7261626c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/gurgentil/laravel-storable/releases)[![GitHub Workflow Status](https://camo.githubusercontent.com/7a25992e867833c5a43d0ffa12018e3fde6fa3a0b7fcf36f4d0f7064ce37699b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f67757267656e74696c2f6c61726176656c2d73746f7261626c652f72756e2d74657374733f6c6162656c3d7465737473)](https://camo.githubusercontent.com/7a25992e867833c5a43d0ffa12018e3fde6fa3a0b7fcf36f4d0f7064ce37699b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f67757267656e74696c2f6c61726176656c2d73746f7261626c652f72756e2d74657374733f6c6162656c3d7465737473)[![Quality Score](https://camo.githubusercontent.com/2808f7619914b1a630cb3c1d2f8c28f316dd366cb068024af50f819d7338471a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f67757267656e74696c2f6c61726176656c2d73746f7261626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/gurgentil/laravel-storable)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Create storage transformers for your Eloquent models.

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

[](#installation)

Install the package via composer:

```
composer require gurgentil/laravel-storable
```

Usage
-----

[](#usage)

Create a storable class:

```
php artisan make:storable StorableUser
```

Define the file path and the object representation you want to store:

```
