Support the ongoing development of Laravel.io →

388 Threads

posted 8 years ago

dependency injection on my controller

Hello, I am trying to inject an attribute on my construtor to avoid to redeclare it on every method...

0 Likes
1 Replies
Solved
posted 8 years ago

How to use IoC based on route?

If I write this for example: class MyController { private $test; public function __construct(Interfa...

0 Likes
1 Replies
Solved

Architecture - Where do I put this class?

Let me set the scene, so to speak. I have an "Item" class which has different food items (...

0 Likes
1 Replies

Cannot redeclare GuzzleHttp\Promise\queue()

Hello, Today I ran into a problem which I could not solve. I am developing at the moment some differ...

0 Likes
0 Replies
posted 8 years ago

how to implement Singleton in laravel 5.0 ?

i have created a class as follows class CommonContainer { public $value1; public $value2; private st...

0 Likes
1 Replies

Probably stupid newbie 'what's the best way to..' question

I'm a long time old school procedural programmer, slowly (at my age, everything is slow) getting my...

0 Likes
3 Replies
Solved
posted 8 years ago

Using the scheduler from a package (5.1)

Hello, I am adding a command from a package like so -- $this->app->bind('stats::command.st...

0 Likes
1 Replies

Attach several classes to one Interface in the IoC

Hello, I'm getting a need for use several classes in my application and If I have a single interface...

0 Likes
7 Replies

Laravel 5 Repository inside service provider

I have the following problem in my laravel 5 project. I have a service provider for form macros name...

0 Likes
1 Replies
Solved
posted 8 years ago

BindingResolutionException: Target is not instantiable

This is driving me bonkers because it seems I'm the only person with this problem. I have a UserMess...

0 Likes
1 Replies

Route::bind not working in production on ubuntu

Using Laravel 5.0, we develop locally using Homestead and everything works fine. When we deploy the...

0 Likes
1 Replies

Lifecycle: After App Service Provider, Before Rest?

Hello, where can I place code (Laravel 5.1) that has to be executed after the App\Providers\AppServi...

0 Likes
1 Replies
Solved

Service Provider Issue

Hey all, I'm having a really odd issue with a package I just wrote. I've been banging my head agains...

0 Likes
6 Replies
Solved

All Your Design Patterns Are Belong To Us

One team I'm on right now is in the process of building a massive application on Laravel. As we've a...

0 Likes
0 Replies

Unresolvable dependency resolving

Hi I have developed a package for L4. This package is make be easy to CRUD ORM proccess for multi l...

0 Likes
2 Replies
Solved

Laravel 5.1 Task Scheduling

How can i use controller method in scheduling rather than command?

0 Likes
1 Replies

Weird Query Results When Using Repository Pattern

demo Table: name | passport_date | visa_date when i using in Eloquent: $latestPassport = Demo::order...

0 Likes
1 Replies

Argument 1 passed to App\Application\Repository\Eloquent\Database::__construct() must be an instance of File, none given

I am Pretty new to the repository thing and don't do a lot of dependency injection.Now am having thi...

0 Likes
0 Replies
posted 8 years ago

Singleton Service Provider not found when created object

Can someone help me as to why the code bellow does not work. I created a ServicePrvoider which runs,...

0 Likes
2 Replies
Solved

Use @inject within view to display content

I´m working on a small Web-Application which will be having a private messaging system. While a user...

0 Likes
0 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.