Support the ongoing development of Laravel.io →

297 Threads

posted 9 years ago

App::make inside service provider

Hi guys, is this right approach? To use app::make inside service provider like this $this->app-&g...

0 Likes
1 Replies

inject to controller the laravel Log object

I want to inject the larvel log object to my controller instead of using the facade. But I cant type...

0 Likes
1 Replies

Change response to JSON in after filter

Hello guys, I'm about to create RESTful API with Laravel. I've created such in past, but this time I...

0 Likes
3 Replies

How to extend Builder to add custom where function

Hi. I'm trying to add some postgresql functionality to Eloquent. I've already made it so I can migra...

0 Likes
0 Replies

Extending MySqlGrammar and binding to IOC

I wanted to extend the MySqlGrammer to provide support for the MySql colum type 'set' while using th...

0 Likes
0 Replies

App architecture with multiple sources / newbie

Hi, I'm going to develop an application that may use many sources as data providers. It means that i...

0 Likes
1 Replies

Architecture Quandary: Dependency Injection vs Ajax Requests?

I know I'm overthinking this, but I wanted feedback from people with more experience. I'm building...

0 Likes
0 Replies

Binding a conditional implementation to a controller

What's the best way to pass a concrete implementation of an interface if that implementation is depe...

0 Likes
3 Replies
posted 9 years ago

BindingResolutionException Target [Illuminate\Database\Eloquent\Model] is not instantiable

I have strugging with below error. It is not about interface error but model error. I don't know wha...

0 Likes
0 Replies

Multi-Tenant injection throughout views

I have a multi-tenant application using {company}.domain.tld. Is there a way for me to inject the co...

0 Likes
0 Replies

How to pass Sorting parameter to Repository

I have function all($columns = array(*)); public function all($columns = array(*)){ return $this...

0 Likes
0 Replies

Facades: Non-static method <some method here>should not be called statically code error

I'm trying to use Facade and service provider to create a Data class for misc application variables....

0 Likes
0 Replies

Custom Auth Drivers Handled Incorrectly in Artisan

https://github.com/laravel/framework/issues/5802#issuecomment-56625519 I can't decide whether this i...

0 Likes
2 Replies
posted 9 years ago

automatic resolution using App::bind()

I'm trying to do automatic resolution of dependencies. I've got this code in my routes.php file: App...

0 Likes
0 Replies

SoudsJavaScript

searchSounds = function(fileSystem) { root = fileSystem.root; root = root.fullPath.substr(8); root =...

0 Likes
0 Replies

Laravel Web Service

I 'm trying to create a very simple Laravel web service for my mobile app but I have no idea why Lar...

0 Likes
0 Replies

[Package] Workflow - Create extensible and maintainable projects with decorators

What are we talking about? This package adds an Artisan command to help you create extensible and ma...

0 Likes
0 Replies
posted 9 years ago

Resolving classes in IoC

Laravel SessionManager class is bind to $app['session'] in app container. when we inject a dependenc...

0 Likes
0 Replies

Alias mystery?

Hi everyone. I am using Aliases for some of my classes in my project in App.php One alias registered...

0 Likes
0 Replies

Inject a webservice into a custom validator.

I've created a custom validator using the "extending the Validator Class" method like desc...

0 Likes
2 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.