2017 © Pedro Peláez
 

library eloquent-logrotate

laravel eloquent auto create table by daily or weekly or monthly or yearly

image

recca0120/eloquent-logrotate

laravel eloquent auto create table by daily or weekly or monthly or yearly

  • Friday, February 9, 2018
  • by recca0120
  • Repository
  • 1 Watchers
  • 5 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Eloquent Logrotate

StyleCI Build Status Total Downloads Latest Stable Version Latest Unstable Version License Monthly Downloads Daily Downloads Scrutinizer Code Quality Code Coverage, (*1)

INSTALL

composer require recca0120/eloquent-logrotate

HOW TO USE

define model

namespace App;

use Illuminate\Database\Eloquent\Model;
use Recca0120\EloquentLogrotate\Logrotate;

class MonthlyLog extends Model
{
    use Logrotate;

    /**
     * $logrotateType: hourly, daily, weekly, monthly, yearly
     */
    protected $logrotateType = 'monthly';

    protected function logrotateTableSchema($table)
    {
        $table->increments('id');
        $table->string('name');
        $table->string('email')->unique();
        $table->string('password');
        $table->timestamps();
    }
}

it will create database by monthly, (*2)

The Versions

09/02 2018

dev-master

9999999-dev

laravel eloquent auto create table by daily or weekly or monthly or yearly

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel log eloquent model rotate daily weekly monthly yearly logrotate hourly

09/02 2018

v1.0.4

1.0.4.0

laravel eloquent auto create table by daily or weekly or monthly or yearly

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel log eloquent model rotate daily weekly monthly yearly logrotate hourly

21/01 2018

v1.0.3

1.0.3.0

laravel eloquent auto create table by daily or weekly or monthly or yearly

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel log eloquent model rotate daily weekly monthly yearly logrotate hourly

21/01 2018

v1.0.2

1.0.2.0

laravel eloquent auto create table by daily or weekly or monthly or yearly

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel log eloquent model rotate daily weekly monthly yearly logrotate hourly

21/01 2018

v1.0.1

1.0.1.0

laravel eloquent auto create table by daily or weekly or monthly or yearly

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel log eloquent model rotate daily weekly monthly yearly logrotate hourly

14/01 2018

0.0.2

0.0.2.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel log eloquent model rotate logrotate

14/01 2018

v1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel log eloquent model rotate logrotate

13/01 2018

0.0.1

0.0.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel log eloquent model rotate logrotate