Skip to content

Commit

Permalink
Improved BaseModel
Browse files Browse the repository at this point in the history
  • Loading branch information
libern committed May 11, 2018
1 parent 7dd2453 commit 5c3e851
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Someline/Base/Models/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,16 @@ protected function api_auth()
}

/**
* @depreceted Not Safe to use.
*
* Get ID from the model primary key
*
* @return mixed
*/
public function getIdAttribute()
{
return $this->getKey();
}
// public function getIdAttribute()
// {
// return $this->getKey();
// }

/**
* Get current auth user
Expand Down

0 comments on commit 5c3e851

Please sign in to comment.