laravel-5
PHPunit Uncaught Error: Call to undefined method PHPUnit_Util_Configuration::getTestdoxGroupConfiguration()
It seems like your version installed globally does not meet the minimal required version. Try to run phpunit –version I bet you will get something like 5.1. The php artisan dusk command uses different version which is located in vendor/bin/phpunit. So, you are also able to use this version instead. Just type: vendor/bin/phpunit instead of … Read more
Manually inject model relation using Eloquent
setRelation() should work. It sets the value in the relations array. $owner->setRelation(‘domain’, $domain); When setting a one to many relationship, you may need to use values(): $owner->setRelation(‘domains’, $domains->values());