Skip to content

Commit

Permalink
Convert model name to studly names
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro committed Sep 1, 2020
1 parent 0175933 commit e7dde4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Capsules/HasCapsules.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getCapsuleList()
public function getCapsuleByModel($model)
{
return $this->getCapsuleList()
->where('singular', $model)
->where('singular', Str::studly($model))
->first();
}

Expand Down

0 comments on commit e7dde4e

Please sign in to comment.