boyjarv
1 month ago
144
1
Laravel

Too few arguments help

Posted 1 month ago by boyjarv

Please help, I am getting the following error:

Too few arguments to function Illuminate\Filesystem\FilesystemAdapter::put(), 1 passed in /Users/johnbiddulph/Documents/development/laravel/moveme/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemManager.php on line 368 and at least 2 expected

here is my code:

public function pdf(){

//create pdf document
        $pdf = app('Fpdf');
        $pdf->AddPage();
        $pdf->SetFont('Arial','B',16);
        $pdf->Cell(40,10,'Hello World!');

//save file
        Storage::put($pdf->Output('S'));
        return view('venues.pdf', compact(
            'pdf'));
    }```

Please sign in or create an account to participate in this conversation.