Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How about add getIncrementing() for HasUlid trait ? #1

Closed
liaosankai opened this issue Jan 23, 2018 · 1 comment
Closed

How about add getIncrementing() for HasUlid trait ? #1

liaosankai opened this issue Jan 23, 2018 · 1 comment

Comments

@liaosankai
Copy link

Add getIncrementing for HasUlid trait

...
    public function getIncrementing()
    {
        return false;
    }
...

It make Model more clear

use Illuminate\Database\Eloquent\Model;
use Rorecek\Ulid\HasUlid;

class Item extends Model
{
  use HasUlid;
}
@rorecek
Copy link
Owner

rorecek commented Aug 28, 2019

Perfect idea! Thank you very much.

@rorecek rorecek closed this as completed Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants