https://github.com/ezitisitis/laravel-uuid
https://github.com/ezitisitis/laravel-uuid
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ezitisitis/laravel-uuid
- Owner: ezitisitis
- License: agpl-3.0
- Created: 2022-09-28T17:00:35.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-08-07T19:44:36.000Z (11 months ago)
- Last Synced: 2025-09-12T05:52:26.614Z (10 months ago)
- Language: PHP
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# UUID for Laravel Model


## Installing
```bash
$ composer require ezitisitis/laravel-uuid
```
## Usage
Replace Laravel model extension (example below)
```php
use Illuminate\Database\Eloquent\Model;
class MyAwesomeModel extends Model
{
```
With
```php
use EzitisItIs\LaravelUuid\Model;
class MyAwesomeModel extends Model
{
```
If you set `$incrementing = true;` then it will continue to use incrementing ID.
## Credits
- [Marks Bogdanovs](https://www.ezitisitis.com)
