r15ch13/peculiar

This package is abandoned and no longer maintained. No replacement package was suggested.

An extension to the Laravel Eloquent Model. It allows the use of UUIDs (ramsey/uuid) as primary keys.

v2.1.0 2017-04-25 18:39 UTC

This package is not auto-updated.

Last update: 2023-03-04 06:43:35 UTC


README

An extension to the Laravel model. It allows the use of UUIDs as primary keys.

Installation

Add r15ch13/peculiar as a requirement to composer.json:

{
    "require": {
        "r15ch13/peculiar": "~2.0"
    }
}

Update your packages with composer update or install with composer install.

Getting Started

Peculiar extends the Eloquent base class without changing its core functionality.

To create a new Peculiar model, simply make your model class derive from the Peculiar base class.

use Rfifteen\Peculiar\Peculiar;

class User extends Peculiar {}

If you're using LaravelBook\Ardent use it like so:

use Rfifteen\Peculiar\Ardent\Peculiar;

class User extends Peculiar {}

If you're using Cartalyst\Sentry use it like so:

use Rfifteen\Peculiar\Sentry\PeculiarUser;

class User extends PeculiarUser {}

License

The MIT License (MIT)