One could create static function fromAffiliateProduct($product) in Eloquent model where all data extraction happens and new instance creation, so saving eloquent afterwards should make any trouble.
$data = [ 'field' => $product->getField(), 'another-field' => $product->getAnotherField() ]; return new static($data);
Other way would be http://php.net/manual/en/class.reflectionclass.php. You will be able to extract all values for all properties (public and private) directly without using getters.
if i provide in Homestead.yaml hhvm: true, it throws exception:
ErrorException in ClassLoader.php line 440:
For more detailed logs, try
tail -f $(hh_client --monitor-logname) $(hh_client --logname) Server launched with the following command: '/usr/bin/hh_server' '-d' '/home/vagrant/personal/blog.dev' '--waiting-client' '6' Spawned typechecker (child pid=1943) Logs will go to /tmp/hh_server/zShomezSvagrantzSpersonalzSblog.dev.monitor_log hh_server died unexpectedly. Maybe you recently launched a different version of hh_server. Now exiting hh_client.
If i run
tail -f $(hh_client --monitor-logname) $(hh_client --logname), it shows:
Error: could not find a .hhconfig file in /home/vagrant or any of its parent directories. Do you have a .hhconfig in your code's root directory? Error: could not find a .hhconfig file in /home/vagrant or any of its parent directories. Do you have a .hhconfig in your code's root directory? tail: warning: following standard input indefinitely is ineffective
Why it searches for .hhconfig file in /home/vagrant, not in /home/vagrant/Code/project? I also noticed that laravel 5.3 < documentation about homestead does not contain anything about hhvm, is it depracated or something?