hakhsin's avatar

Best filesystem config practice on test environment

Hi, what is the best practice for config laravel filesystem on test environment for testing file uploads? I have config my test environment like this: In filesystems.php I added:

'disks' => [
    #...
        'test' => [
            'driver' => 'local',
            'root' => storage_path('framework/testing/app'),
        ],

    ],

In phpunit.xml I added:

<php>
    <!-- ... -->
        <server name="FILESYSTEM_DRIVER" value="test"/>
</php>

Every thing work good. But I want know are there any way better than it?

0 likes
2 replies

Please or to participate in this conversation.