Answers for "artisan link storage"

PHP
3

php artisan storage link

php artisan storage:link
Posted by: Guest on March-13-2020
0

laravel storage link without command line

Route::get('/foo', function () {
    Artisan::call('storage:link');
});
Posted by: Guest on November-23-2020
0

laravel download file from s3

$attachment = TicketAttachment::find($id);
$headers = [
    'Content-Type'        => 'application/jpeg',
    'Content-Disposition' => 'attachment; filename="'. $attachment->name .'"',
];
return \Response::make(Storage::disk('s3')->get($attachment->url), 200, $headers);
Posted by: Guest on October-21-2020

Browse Popular Code Answers by Language