Support the ongoing development of Laravel.io →

388 Threads

Symfony class not found

I've created ServiceProvider and I'd like to use MoFileLoader from Symfony Component. This class is...

0 Likes
0 Replies
posted 10 years ago

singleton() vs bindShared() ??

I've already stared at the source code long enough and can't figure out the difference between these...

0 Likes
0 Replies
posted 10 years ago

Unexcepted behavior : File::exists

Hi everyone, I'm currently working on a theme engine for a project of mine and while checking if the...

0 Likes
0 Replies

Laravel 4.2 FrameGuard middleware opt-in

Whilst looking through the changes in 4.2, I noticed this bit of it, and am quite interested by what...

0 Likes
1 Replies

extend configuration from database : service provider and testability

Hello, I want to add configuration elements to the laravel config object from data stored in the dat...

0 Likes
0 Replies
posted 10 years ago

Problem in my ServiceProvider

in my register() function this, $this->app->bind('IDistrictsRepository', function() { return n...

0 Likes
2 Replies
Solved

Aliasing and building derived database column names How to make this easy ?

This one has been bugging be for months and I so far I have not found an comprehensive solution to s...

0 Likes
3 Replies
Solved

Replacing Hash for Authentication

I need to replace Hash. For this, I have made a class named MyHash like this : class MyHasher implem...

0 Likes
1 Replies

Updating a record using repository

Hi All, I have a repository to create a new record for residents, but now I need to use the same rep...

0 Likes
3 Replies
Solved
posted 10 years ago

Can the IoC container be set to create singleton instances by default?

Hi all, I come from a background of developing apps in Symfony2, where instances returned from the s...

0 Likes
2 Replies
posted 10 years ago

App::singleton with Dependency Injection

I have a class called ViewData passed through the constructor to a controller class public function...

0 Likes
2 Replies
posted 10 years ago

Dependency injection & nesting

I have two repositories, and both of them use one another methods.. So, let's say I have WALLET repo...

0 Likes
2 Replies

Bloated service provider

Has anyone tips for organizing service provider class files? Then in turn, thin out the service prov...

0 Likes
0 Replies

DirectAdmin cronjob and Custom Command with Laravel 4

Hi guys, I wanne run my command every minute i made: generate:xml In the console it works fine, but...

0 Likes
14 Replies
posted 10 years ago

Dependency injection and creating new objects / auth

Heya, I've been playing around with dependency injection to make things like this mockable: public f...

0 Likes
3 Replies

Doing social authentication, the IOC (dependencyInjection) way.

I am going to implement multiple social auth (facebook, github...) options for a website. I have alr...

0 Likes
0 Replies
posted 10 years ago

Get dynamic properties from a Facade

Hi everybody, Is it possible to retrieve a dynamic property accessible by __get() from a Facade? Thi...

0 Likes
6 Replies
Solved

IoC Container resolution error

Hi all, i'm fighting with IoC container. My goal is to have dependency injection as in the documenta...

0 Likes
6 Replies
Solved
posted 10 years ago

Whic one is "faster" ?

I don't know exactly which section should I put this thread. routes.php file Route::get('index', fun...

0 Likes
4 Replies

What is the difference between share and bind in the IoC?

Friends, I'm a few confused with some terms about IoC. With facades declarations sometimes I saw the...

0 Likes
2 Replies
Solved

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.