davzie / laravel-bootstrap

[DEPRECATED] A Laravel 4, Bootstrap 3 CMS Built With SOLID Principles In Mind
Other
558 stars 165 forks source link

Best way to override the Upload class without touching the vendor directory #22

Closed andrewvmail closed 6 years ago

andrewvmail commented 10 years ago

Want to use S3 to upload files just wondering what is most recommended by the author. I can probably hack it up to make it work. But just wondering what would others do.

Cheers!

davzie commented 10 years ago

Haven’t a clue I’m afraid mate. I haven’t had to encounter S3 for user uploaded objects yet so wouldn’t be able to recommend anything from experience.

Dave

PS: Rumour has it this is due in a Laravel release or perhaps something Taylor is developing independently.

On 16 February 2014 at 12:51:11, Andrew (notifications@github.com) wrote:

Want to use S3 to upload files just wondering what is most recommended by the author. I can probably hack it up to make it work. But just wondering what would others do.

Cheers!

— Reply to this email directly or view it on GitHub.

thegmann commented 10 years ago

+1

Need S3 to be able to use this on Heroku! I look forward to seeing where this is going.

andrewvmail commented 10 years ago

Hi Dave, I got a question.

Inside "ObjectBaseController __construct" there is this line $this->uploads_model = App::make('Davzie\LaravelBootstrap\Uploads\UploadsInterface');

I understand it's putting the UploadInterface object to the uploads_model variable. What I don't get is how did the interface linked up with the UploadRepository.php I don't see any thing inside the interface file that links up to the UploadRepository

davzie commented 10 years ago

Checkout the magic of IoC bindings: https://github.com/davzie/laravel-bootstrap/blob/master/src/bindings.php

=)

On 18 February 2014 at 11:27:37, Andrew (notifications@github.com) wrote:

Hi Dave, I got a question.

Inside "ObjectBaseController __construct" there is this line $this->uploads_model = App::make('Davzie\LaravelBootstrap\Uploads\UploadsInterface');

I understand it's putting the UploadInterface object to the uploads_model variable. What I don't get is how did the interface linked up with the UploadRepository.php I don't see any thing inside the interface file that links up to the UploadRepository

— Reply to this email directly or view it on GitHub.

andrewvmail commented 10 years ago

Sweet!! Thanks. Didn’t notice those did it.

Andrew Tan

On Tuesday, February 18, 2014 at 3:29 AM, David Thorpe wrote:

Checkout the magic of IoC bindings: https://github.com/davzie/laravel-bootstrap/blob/master/src/bindings.php

=)

On 18 February 2014 at 11:27:37, Andrew (notifications@github.com (mailto:notifications@github.com)) wrote:

Hi Dave, I got a question.

Inside "ObjectBaseController __construct"
there is this line
$this->uploads_model = App::make('Davzie\LaravelBootstrap\Uploads\UploadsInterface');

I understand it's putting the UploadInterface object to the uploads_model variable.
What I don't get is how did the interface linked up with the UploadRepository.php I don't see any thing inside the interface file that links up to the UploadRepository


Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub (https://github.com/davzie/laravel-bootstrap/issues/22#issuecomment-35375190).