Skip to content

Commit 5943839

Browse files
authored
Merge pull request #7 from AndyMac2508/master
updated typo on eloquentdatabasedriver
2 parents 30a1ab6 + d981e0b commit 5943839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DatabaseDrivers/EloquentDatabaseDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function setRoles($className, $foreignId, $roles)
6868
public function getAllByRole($className,$role)
6969
{
7070
$rows = array();
71-
$getRows = Role::where('class_name', $className)->where('role','LIKE ', '%'.$role.'%')->get();
71+
$getRows = Role::where('class_name', $className)->where('roles','LIKE', '%'.$role.'%')->get();
7272
foreach($getRows as $row)
7373
{
7474
$rows[] = $row->foreign_id;

0 commit comments

Comments
 (0)