2017 © Pedro Peláez
 

library laravel-datetime-attributes

Set a datetime attribute separately using a date and a time. This is especially helpful for input[type=date] and input[type=time].

image

limenet/laravel-datetime-attributes

Set a datetime attribute separately using a date and a time. This is especially helpful for input[type=date] and input[type=time].

  • Wednesday, July 11, 2018
  • by limenet
  • Repository
  • 1 Watchers
  • 0 Stars
  • 483 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Laravel Datetime Attributes

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads, (*1)

Set a datetime attribute separately using a date and a time. This is especially helpful for input[type=date] and input[type=time], (*2)

Usage

<?php

use Illuminate\Database\Eloquent\Model as Base;
use Limenet\LaravelDatetimeAttributes\DateTimeTrait;

class Model extends Base
{
    use DateTimeTrait;

    public function getStartDateAttribute()
    {
        return $this->dtGetDate('start');
    }

    public function getStartTimeAttribute()
    {
        return $this->dtGetTime('start');
    }

    public function setStartDateAttribute($value)
    {
        $this->dtSetDate('start', $value);
    }

    public function setStartTimeAttribute($value)
    {
        $this->dtSetTime('start', $value);
    }
}

The Versions

11/07 2018

dev-master

9999999-dev

Set a datetime attribute separately using a date and a time. This is especially helpful for input[type=date] and input[type=time].

  Sources   Download

MIT

The Requires

 

The Development Requires

09/02 2018

v0.1.3

0.1.3.0

Set a datetime attribute separately using a date and a time. This is especially helpful for input[type=date] and input[type=time].

  Sources   Download

MIT

The Requires

 

The Development Requires

03/05 2017

v0.1.2

0.1.2.0

Set a datetime attribute separately using a date and a time. This is especially helpful for input[type=date] and input[type=time].

  Sources   Download

MIT

The Requires

 

The Development Requires

03/05 2017

v0.1.1

0.1.1.0

Set a datetime attribute separately using a date and a time. This is especially helpful for input[type=date] and input[type=time].

  Sources   Download

MIT

The Requires

 

The Development Requires

03/05 2017

v0.1.0

0.1.0.0

Set a datetime attribute separately using a date and a time. This is especially helpful for input[type=date] and input[type=time].

  Sources   Download

MIT

The Requires

 

The Development Requires