<?php
return [

    /**
     * The storage config
     */
    "storage" => [
        /**
         * Returns the folder name of the chunks. The location is in storage/app/{folder_name}
         */
        "chunks" => "chunks",
        "disk" => "local"
    ],
    "clear" => [
        /**
         * How old chunks we should delete
         */
        "timestamp" => "-3 HOURS",
        "schedule" => [
            "enabled" => true,
            "cron" => "0 */1 * * * *" // run every hour
        ]
    ],
    "chunk" => [
        // setup for the chunk naming setup to ensure same name upload at same time
        "name" => [
            "use" => [
                "session" => true, // should the chunk name use the session id? The uploader must send cookie!,
                "browser" => false // instead of session we can use the ip and browser?
            ]
        ]
    ]
];
<?php
return [

    /**
     * The storage config
     */
    "storage" => [
        /**
         * Returns the folder name of the chunks. The location is in storage/app/{folder_name}
         */
        "chunks" => "chunks",
        "disk" => "local"
    ],
    "clear" => [
        /**
         * How old chunks we should delete
         */
        "timestamp" => "-3 HOURS",
        "schedule" => [
            "enabled" => true,
            "cron" => "25 * * * *" // run every hour on the 25th minute
        ]
    ],
    "chunk" => [
        // setup for the chunk naming setup to ensure same name upload at same time
        "name" => [
            "use" => [
                "session" => true, // should the chunk name use the session id? The uploader must send cookie!,
                "browser" => false // instead of session we can use the ip and browser?
            ]
        ]
    ]
];

Set scheduler to run every hour on the 25th minute
Set scheduler to run every hour on the 25th minute

Fixes ‘InvalidArgumentException  : 5 is not a valid position’ when doing ‘artisan schedule:run’
