Skip to content

Commit 29da76d

Browse files
committed
Fix table name in patch model
1 parent e396329 commit 29da76d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Models/Patch.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,14 @@ class Patch extends Model
4040
protected $casts = [
4141
'log' => 'array',
4242
];
43+
44+
/**
45+
* Get the table associated with the model.
46+
*
47+
* @return string
48+
*/
49+
public function getTable()
50+
{
51+
return config('laravel-patches.table_name');
52+
}
4353
}

0 commit comments

Comments
 (0)