for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SaasReady\Database;
trait SaasReadyFactory
{
protected static function newFactory()
$factoryClassName = class_basename(get_called_class());
return ("SaasReady\\Database\\Factories\\{$factoryClassName}Factory")::new();
}