PHPackages                             sarahman/laravel-timestamp-boolean-fields - 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. [Framework](/categories/framework)
4. /
5. sarahman/laravel-timestamp-boolean-fields

ActiveLibrary[Framework](/categories/framework)

sarahman/laravel-timestamp-boolean-fields
=========================================

Deal with the fields whose timestamp value means their boolean status.

1.1.2(2y ago)1202MITPHPPHP &gt;=5.4CI failing

Since Mar 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sarahman/laravel-timestamp-boolean-fields)[ Packagist](https://packagist.org/packages/sarahman/laravel-timestamp-boolean-fields)[ RSS](/packages/sarahman-laravel-timestamp-boolean-fields/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Dealing with the Timestamp based Boolean fields for the Laravel PHP Framework
=============================================================================

[](#dealing-with-the-timestamp-based-boolean-fields-for-the-laravel-php-framework)

[![Latest Version on Packagist](https://camo.githubusercontent.com/816da07c6cdfe449f057682031d1bfc2a0978943189f22e3ed387f35e67f65f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73617261686d616e2f6c61726176656c2d74696d657374616d702d626f6f6c65616e2d6669656c64732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sarahman/laravel-timestamp-boolean-fields)[![Build Status](https://camo.githubusercontent.com/c575bb74bc38a26a0eb4c7b9b3b3d65dad733770f00f89052a83c7210d86d4eb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73617261686d616e2f6c61726176656c2d74696d657374616d702d626f6f6c65616e2d6669656c64732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/sarahman/laravel-timestamp-boolean-fields)[![Quality Score](https://camo.githubusercontent.com/6474b68713e97bf3cf2e295c325e704af74fff2bf40c3ad3cbd4f831bf480c0b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73617261686d616e2f6c61726176656c2d74696d657374616d702d626f6f6c65616e2d6669656c64732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sarahman/laravel-timestamp-boolean-fields)[![StyleCI](https://camo.githubusercontent.com/9fe2d30369ac58ec8c4ea46d297f8ff7edb103c669fa1adaebfa68afee7d1e00/68747470733a2f2f7374796c6563692e696f2f7265706f732f3137383534323330302f736869656c64)](https://styleci.io/repos/178542300)[![Total Downloads](https://camo.githubusercontent.com/1906b58f284634bfd3ac5b9ed11487a4245db550b3ce6f40ebdac43b250e5ed7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73617261686d616e2f6c61726176656c2d74696d657374616d702d626f6f6c65616e2d6669656c64732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sarahman/laravel-timestamp-boolean-fields)

Introduction
------------

[](#introduction)

This library can be used in the scenarios when you want to understand the db boolean field value as not only its status but also the time when it becomes true.

Code Sample
-----------

[](#code-sample)

```
