Laravel 4 – 5
Repository is archived
No commit activity in last 2 years
No release in over 2 years
An extension to the Laravel Eloquent Model. It allows the use of UUIDs (ramsey/uuid) as primary keys.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

phpspec/phpspec
~2.0

Runtime

ramsey/uuid
~3.6
 Project Readme

Peculiar

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)