Skip to content

Commit d5640ab

Browse files
committed
Add class alias
1 parent 9b72a78 commit d5640ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/WaterlineApplicationServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ protected function gate()
4040

4141
public function register()
4242
{
43+
if (! class_exists('Workflow\Models\Model')) {
44+
class_alias(config('workflows.base_model', Model::class), 'Workflow\Models\Model');
45+
}
46+
4347
$drivers = [
4448
'mongodb' => WorkflowRepositoryMongoDB::class,
4549
'mysql' => WorkflowRepositoryMySQL::class,

0 commit comments

Comments
 (0)