Skip to content

Commit 8f36988

Browse files
committed
updating README.md
1 parent ce25459 commit 8f36988

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
a simple laravel package to generate uuid instead of auto incrementing ids as primary keys.
44

5-
> Warning: This package is not installable via Composer 1.x, make sure you upgrade to Composer 2+ before trying to install it.
6-
75
### what's even a uuid?
86
UUID stands for Universally Unique IDentifier. as you may encounter the acronym of it GUID (which stands for Globally Unique IDentifier).
97

@@ -24,20 +22,14 @@ here are some reasons why you should use UUIDs:
2422
* local-first applications! : Let’s say I have a collaborative application. And I want to be able to work with that application, event when I’m offline. And that means creating new content that should be added to the common database. What I expect is for the application to let me create my new content, and merge it to the central shared database when I’m back online. And I expect my coworkers to be able to do the same. In this scenario, entries in the database can’t be indexed with an auto incrementing number. Because my coworkers and myself, while offline, would be creating entries with the same ID. And once back online, we would face numerous data merging issues. UUID in this case, is a marvelous solution!
2523

2624
### installation
25+
> Warning: This package is not installable via Composer 1.x, make sure you upgrade to Composer 2+ before trying to install it.
26+
2727
using `composer`:
2828

2929
```
3030
composer require adnane/simple-uuid
3131
```
32-
register the package's service provider in providers array in your `app.php`:
33-
34-
```php
35-
'providers' => [
36-
..
37-
Adnane\SimpleUuid\SimpleUuidServiceProvider::class,
38-
```
39-
40-
as you may need to define an alias for the package's trait , in your `app.php` in the aliases array as bellow:
32+
the package's service provider is auto loaded so no need to add it in the providers array in `app.php` .actually, you may need to define an alias for the package's trait , in your `app.php` in the aliases array as bellow:
4133

4234
```php
4335
'aliases' => [
@@ -92,4 +84,4 @@ everyone is welcome :)
9284

9385
### credit
9486

95-
[adnane-ka](https://github.com/adnane-ka/simple-uuid)
87+
[Adnane.Ka](https://github.com/adnane-ka/simple-uuid)

0 commit comments

Comments
 (0)