Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KFoobar committed Feb 5, 2022
0 parents commit 8b9c8db
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
; This file is for unifying the coding style for different editors and IDEs.
; More information at http://editorconfig.org

root = true

[*]
charset = utf-8
indent_size = 4
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.phpintel/
vendor/
composer.lock
.DS_Store
16 changes: 16 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Copyright 2021 David Villa ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Eloquent UUID trait for Laravel

UUID trait for models in Laravel 5.5+

## Installation

You can install the package via composer:

```
$ composer require kfoobar/laravel-uuid
```

## Basic Usage

First, add the KFoobar\Uuid\Traits\HasUuid trait to your model(s):

```
class Post extends Model
{
use HasUuid;
}
```

## Contributing

Contributions are welcome!

## License

The MIT License (MIT). Please see [License File](LICENSE) for more information.
21 changes: 21 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "kfoobar/laravel-uuid",
"description": "Eloquent UUID trait for Laravel",
"license": "MIT",
"authors": [
{
"name": "KFoobar",
"email": "[email protected]"
}
],
"minimum-stability": "dev",
"require": {
"php": ">=7.3",
"illuminate/support": "^5.5|^6|^7|^8|^9"
},
"autoload": {
"psr-4": {
"KFoobar\\LaravelUuid\\": "src/KFoobar/LaravelUuid/"
}
}
}
8 changes: 8 additions & 0 deletions src/LaravelUuid/Traits/HasUuid.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace KFoobar\LaravelUuid\Traits;

class HasUuid
{
//
}

0 comments on commit 8b9c8db

Please sign in to comment.