Skip to content
Discussion options

You must be logged in to vote

I got it. thank you @erikn69

$user = User::where('id',auth()->user()->id)->first();
$downloads = ModelsMedia::where('model_id',$user->id)->get();
return MediaStream::create('myfiles.zip')->addMedia($downloads);

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@AnoopJoze
Comment options

@AnoopJoze
Comment options

@erikn69
Comment options

@parallels999
Comment options

Comment options

You must be logged in to vote
1 reply
@erikn69
Comment options

Answer selected by AnoopJoze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants