I am not sure if you are asking for a general flow, or for a practical code example.
I guess, the general flow could be:
In your controller:
- Accept the request
- Store every uploaded video on your server
- Pass the uploaded files to a job, e.g.
ProcessVideos($videos)
In your job:
- Make the job implement
ShouldQueue - Handle all logic for processing the videos
- [optional] Fire an event that the processing was succesful
In your environment file:
- Set the appropriate queue driver (e.g. redis), making sure that you've installed the required driver
Optionally, you could also listen for that VideoProcessingSucces event and broadcast that back to that user, let me know if you want more info on that as well.