streamingsystems

streamingsystems

Member Since 1 Year Ago

Experience Points
18,980
Total
Experience

1,020 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
181
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 4
18,980 XP
Sep
25
1 month ago
Activity icon

Started a new Conversation DispatchNow Vs DispatchSync

Hi,

Pre Laravel 8 I was using dispatchNow. Per the docs, it seems that has been replaced with dispatchSync.

However, before I assumed they were identical I wanted to confirm with other developers.

When I look at the source, I would have expected them to call the same method but one does call dispatchNow and the other dispatchSync.

The source code comments for the dispatchSync also adds "Queuable jobs will be dispatched to the "sync" queue."

Is the sync queue another way of just saying in the current thread/context?

Before I updated my code to use dispatchSync (instead of dispatchNow) I wanted to double check they behaved the same.

(I am assuming dispatchNow will be deprecated in future releases?)

Thanks!

-Rob

Activity icon

Awarded Best Reply on File Download

Thanks for the reply. In #3 you suggest, this is how I implemented it and it seems to work great (for amazon s3).




public function download($path, $filename)
    {

// $path = "some/path/to/file";
// $filename = "foo.mp4"; // the filename that will be downloaded on the customers computer

return redirect(Storage::cloud()->temporaryUrl(
                $path,
                now()->addHour(),
                ['ResponseContentDisposition' => 'attachment; filename ="' . $filename . '"']
            ));
}
Activity icon

Replied to File Download

Thanks for the reply. In #3 you suggest, this is how I implemented it and it seems to work great (for amazon s3).




public function download($path, $filename)
    {

// $path = "some/path/to/file";
// $filename = "foo.mp4"; // the filename that will be downloaded on the customers computer

return redirect(Storage::cloud()->temporaryUrl(
                $path,
                now()->addHour(),
                ['ResponseContentDisposition' => 'attachment; filename ="' . $filename . '"']
            ));
}
Sep
24
1 month ago
Activity icon

Started a new Conversation Getting Job Id

Hi,

I am interested in getting the job id (database connection) for jobs.

I am seeing some discrepancies and wanted to get some input:

These give me an id:

$id = Bus::dispatch(new TestJob()); $Id = dispatch(new TestJob());

But this just returns a PendingDispatch with the id = null

TestJob::dispatch();

Thanks!

-Rob

Sep
23
1 month ago
Activity icon

Started a new Conversation File Download

Hi,

I am using Laravel 8.

I wanted to run some ideas by some fellow developers to make sure I am understanding the way the file download works in Laravel.

I am using Amazon S3 as my back end storage system and it's all connected and working fine in my system.

I am providing a button so my customers can download files (invoices, videos, etc).

Option 1: Download via Streams

When I use the stock "download" it looks like (based on the source) that it's using streams as discussed here:

https://laravel.com/docs/8.x/filesystem#downloading-files

I understand this such that when I initiate a download it will connect to Amazon s3 and then read the file in real-time and pass "through" my web server for the entire download. As the bits are read from amazon (private bucket authenticated via the Laravel/s3 connector) they are sent back to the user.

Is that correct? Or does it somehow download the file first to a temp file on my web server and then send that back?

I would think with a lot of downloads going concurrently this approach would take a lot of resources from my web server.

Option 2: Temp URL

The other option is to create a Temp URL from Amazon and essentially hand off the download to Amazon as discussed here:

https://sutherlandboswell.com/force-file-download-from-aws-s3-in-laravel/

This would, I would think, just take my web server resources as it's setting up the temp URL and handing it off.

Any replies or insight would be greatly appreciated.

Thanks!

-Rob

Sep
09
1 month ago
Activity icon

Started a new Conversation Lumen Deployment

Hi,

For Laravel there are artisan commands that are run at deployment to cache configs, etc:

https://laravel.com/docs/8.x/deployment

I am wondering if there is the same (or equivalent) for Lumen? I am using for one of our projects and just want to make sure I don't miss anything in deployment.

Possibly Lumen, by design, does not need these features as it's blazing fast out of the box.

Just wanted to check..

Thanks!

-Rob

Sep
08
1 month ago
Activity icon

Replied to Laravel 8 / Guzzle 7

Thanks for the reply. Yeah, I ended up going for fork route..

Activity icon

Started a new Conversation Laravel 8 / Guzzle 7

Hi All,

I have quite a bit of third party libraries in my Laravel 7 application. Come to find out, most of them require Guzzle 6.x -- Zendesk, HubSpot (some pretty significant applications in my system).

When trying to upgrade to Laravel 8 today, as you can imagine, Composer is halting the upgrade as the other packages require Guzzle 6, whereas Laravel 8 requires Guzzle 7.0.1.

Is there any way around this short of contacting each of the vendors and crossing my fingers that they upgrade to Guzzle 7 (assuming they can).

I would imagine many others will hit this as they upgrade so hopefully the responses to my question help others as well.

Thanks!

-Rob

Jun
17
4 months ago
Activity icon

Replied to Using Controller To Open New Window For Redirect

Thanks for sharing I was looking to do this today and your code worked great :)

Jun
14
4 months ago
Activity icon

Replied to Tagged Cache Items With TTL Mess Up Redis Cache In Laravel

Hi All, I hit this issue today -- the data is expiring and being removed but the tags themselves seem to stay around indefinitely. Did anyone find a solution to this? Thanks!