PHPackages                             patrickcurl/laravel-computed-columns - 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. patrickcurl/laravel-computed-columns

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

patrickcurl/laravel-computed-columns
====================================

Adds the methods: md5AsComputed, jsonFieldStoredAs, manyJsonFieldsStoredAs, concatWsStoredAs.

v1.0.3(3y ago)025[3 PRs](https://github.com/patrickcurl/laravel-computed-columns/pulls)MITPHPPHP ^8.1

Since Oct 1Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (17)Versions (8)Used By (0)

Adds the methods: md5AsComputed, jsonFieldStoredAs, manyJsonFieldsStoredAs, concatWsStoredAs
============================================================================================

[](#adds-the-methods-md5ascomputed-jsonfieldstoredas-manyjsonfieldsstoredas-concatwsstoredas)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a7e175178cdbea8b9d7cbcd8328b6898a68bf1e142c5d648c906f95ce9a678aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7061747269636b6375726c2f6c61726176656c2d636f6d70757465642d636f6c756d6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/patrickcurl/laravel-computed-columns)[![GitHub Tests Action Status](https://camo.githubusercontent.com/3bff63af6521e14b0553bed7328e17e09682912a1a06e0d2fb0f963ffc105550/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7061747269636b6375726c2f6c61726176656c2d636f6d70757465642d636f6c756d6e732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/patrickcurl/laravel-computed-columns/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/da0535bda0cfa144510c3942c0053ede05e383316c1869298bd03c8b35815e27/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7061747269636b6375726c2f6c61726176656c2d636f6d70757465642d636f6c756d6e732f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/patrickcurl/laravel-computed-columns/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f10c24c0aab7a96691a522ecd8ccf75ffce136c6bb8aad85da6d3dc710a85357/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7061747269636b6375726c2f6c61726176656c2d636f6d70757465642d636f6c756d6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/patrickcurl/laravel-computed-columns)

This package is an extension to laravel migrations to add some more optimized virtual/storedAs fields based on common use cases (at least my own);

Support us
----------

[](#support-us)

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

[](#installation)

You can install the package via composer:

```
composer require patrickcurl/laravel-computed-columns
```

You can publish and run the migrations with:

Usage
-----

[](#usage)

I'm planning on better documentation but the simplest way to jump in is look at some code.

```
