Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
eusonlito committed May 5, 2018
2 parents 3d10d7c + 7e5c525 commit 10b4730
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class HomeController extends Controller
Meta::set('description', 'All about this detail page');

# Remove previous images
Meta::unset('image');
Meta::remove('image');

# Add only this last image
Meta::set('image', asset('images/detail-logo.png'));
Expand Down
6 changes: 3 additions & 3 deletions src/Eusonlito/LaravelMeta/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ public function set($key, $value)
*
* @return void
*/
public function unset($key)
public function remove($key)
{
$method = 'unset'.$key;
$method = 'remove'.$key;

if (method_exists($this, $method)) {
$this->$method();
Expand Down Expand Up @@ -171,7 +171,7 @@ private function setImage($value)
/**
* @return void
*/
private function unsetImage()
private function removeImage()
{
$this->metas['image'] = [];
}
Expand Down

0 comments on commit 10b4730

Please sign in to comment.