2018-03-20 09:50:40 +08:00
|
|
|
<?php
|
|
|
|
|
2019-07-16 03:44:31 +08:00
|
|
|
namespace App\Contracts;
|
2018-03-20 09:50:40 +08:00
|
|
|
|
2018-03-20 10:01:32 +08:00
|
|
|
/**
|
2018-04-02 07:02:12 +08:00
|
|
|
* @property mixed $id
|
2018-04-08 09:52:12 +08:00
|
|
|
* @property bool $skip_mutator
|
2019-09-17 01:08:26 +08:00
|
|
|
*
|
2019-12-22 12:46:41 +08:00
|
|
|
* @mixin \Illuminate\Database\Eloquent\Builder
|
2018-03-20 10:01:32 +08:00
|
|
|
*/
|
2018-03-20 09:50:40 +08:00
|
|
|
abstract class Model extends \Illuminate\Database\Eloquent\Model
|
|
|
|
{
|
2019-12-22 12:46:41 +08:00
|
|
|
/**
|
|
|
|
* Max length of ID for string columns
|
|
|
|
*/
|
2018-03-21 02:06:06 +08:00
|
|
|
public const ID_MAX_LENGTH = 12;
|
2018-04-08 09:52:12 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* For the factories, skip the mutators. Only apply to one instance
|
|
|
|
*/
|
|
|
|
public $skip_mutator = false;
|
2018-03-20 09:50:40 +08:00
|
|
|
}
|