How do I get Ardent to extend from jenssegers/laravel-mongodb without editing the Ardent.php
and replacing the use Illuminate\Database\Eloquent\Model;
statement??
Any clean way to achieve this?
Asked
Active
Viewed 142 times
0

Gaurav Dave
- 6,838
- 9
- 25
- 39

user1005319
- 231
- 1
- 4
- 8
2 Answers
0
You could fork the Ardent project, edit the file, then include your forked version in your composer file.
That way you retain control over the change, and it is not lost when you update or install your dependencies.

Laurence
- 58,936
- 21
- 171
- 212
-
Eeeek but in that way I won't have the latest updates from the MASTER repo – user1005319 Dec 15 '14 at 16:50
-
@user1005319 has this question been answered? If so - can you please accept it - or provide more info – Laurence Dec 30 '14 at 08:14
0
Use bmcmurray/ardent-mongodb, it's a fork of Ardent that works with jenssegers/mongodb.

gidomanders
- 465
- 5
- 16