database_path

The database_path function returns the fully qualified path to your application's database directory. You may also use the database_path function to generate a fully qualified path to a given file within the database directory:
<?php $path = database_path();

$path = database_path('factories/UserFactory.php');