Skip to content

Commit

Permalink
Merge pull request #36 from someline/1.8
Browse files Browse the repository at this point in the history
Improved BaseModel
  • Loading branch information
libern authored May 11, 2018
2 parents 5622ecd + 5c3e851 commit 3f6c177
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 3f6c177

Please sign in to comment.