Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
waska14 authored Nov 1, 2018
1 parent 0508b66 commit 12749c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Schema::create('users', function(Blueprint $table)
```php
class User extends Authenticatable
{
use Waska\Traits\Uuid;
use \Waska\Traits\Uuid;
}
```

Expand All @@ -86,7 +86,7 @@ define `protected $primaryKey` and `protected $uuid_column`:
```php
class User extends Authenticatable
{
use Waska\Traits\Uuid;
use \Waska\Traits\Uuid;

protected $primaryKey = "uuid_primary_column_name";
protected $uuid_column = "uuid_primary_column_name";
Expand All @@ -98,7 +98,7 @@ you need only to append column name in `protected $fillable`:
```php
class User extends Authenticatable
{
use Waska\Traits\Uuid;
use \Waska\Traits\Uuid;

protected $fillable = [
'name',
Expand All @@ -113,7 +113,7 @@ you need define `protected $uuid_column` and append column name in `protected $f
```php
class User extends Authenticatable
{
use Waska\Traits\Uuid;
use \Waska\Traits\Uuid;

protected $uuid_column = "uuid_column_name";

Expand All @@ -130,7 +130,7 @@ you need define `protected $uuid_column` **as an array** and append column names
```php
class User extends Authenticatable
{
use Waska\Traits\Uuid;
use \Waska\Traits\Uuid;

protected $primaryKey = "uuid_primary_column_name"; // If one of them is primary
protected $uuid_column = ["uuid_column_name1", "uuid_column_name2", "uuid_column_name3"];
Expand Down

0 comments on commit 12749c7

Please sign in to comment.