Closed julianpoma closed 5 years ago
Ok, it's the other way around. Doc is OK, but latest release v0.5.1 has not been tagger
See issue #27
@julianpoma - everything should be all set now if you upgrade to: v0.6
Thanks!
I am on 0.7 and I also have:
Trait 'App\Tightenco\Parental\HasChildren' not found
OK it's because I was missing the leading \
:
use Tightenco\Parental\HasParent;
to
use \Tightenco\Parental\HasParent;
I don't know if that's intended in the README.
I installed the package doing
composer require "tightenco/parental=0.5"
The trait names are not longer valid? When I use
HasParent
orHasChildren
trait I get an error saying:I had to use the following ones:
use \Tightenco\Parental\HasParentModel
anduse \Tightenco\Parental\ReturnsChildModels;
Another issue: custom aliases doesn't work. I put this on my parent model:
And on my table, I get
App\Order
andApp\Comeback
as a type