Skip to content

Laravel/Livewire File Upload Stopped Working #1435

Discussion options

You must be logged in to vote

Ugh. OK, I figured it out.

I have a custom service provider that's very obviously designed to help with Bref. ServerlessStorageServceProvider.

<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class ServerlessStorageServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        // if (in_array(config('server_software'), ['bref', 'vapor'])) {
        if (in_array(env('SERVER_SOFTWARE'), ['bref', 'vapor'])) {
            $path = '/tmp/storage';
            $directories = [
                '/app',
                '/cache',
                '/framework/cache',
  …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mnapoli
Comment options

@selfsimilar
Comment options

Answer selected by selfsimilar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants