Skip to content

Commit e8a89ce

Browse files
lancepiochduellsy
authored andcommitted
Revert #112 and follow #113
1 parent 2c68e7a commit e8a89ce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Venturecraft/Revisionable/Revisionable.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,12 @@ public static function boot()
8181
*/
8282
public static function newModel()
8383
{
84-
$model = \Config::get('revisionable.model', 'Venturecraft\Revisionable\Revision');
84+
$model = app('config')->get('revisionable.model');
85+
86+
if (! $model) {
87+
$model = 'Venturecraft\Revisionable\Revision';
88+
}
89+
8590
return new $model;
8691
}
8792

0 commit comments

Comments
 (0)