Skip to content

Commit

Permalink
Revert #112 and follow #113
Browse files Browse the repository at this point in the history
  • Loading branch information
lancepioch authored and duellsy committed Mar 3, 2021
1 parent 2c68e7a commit e8a89ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Venturecraft/Revisionable/Revisionable.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ public static function boot()
*/
public static function newModel()
{
$model = \Config::get('revisionable.model', 'Venturecraft\Revisionable\Revision');
$model = app('config')->get('revisionable.model');

if (! $model) {
$model = 'Venturecraft\Revisionable\Revision';
}

return new $model;
}

Expand Down

0 comments on commit e8a89ce

Please sign in to comment.