Support the ongoing development of Laravel.io →

297 Threads

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
posted 8 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 8 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 8 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

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 8 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

Generic Model in a Package to accept additional properties

Hi, I'm still learning for best practice of PHP OOP pattern. I'm currently try to create Cart compon...

0 Likes 2 Replies

Architecture and Repository Pattern

I'm still trying to figure out where everything goes. So I have a customer page where we create/edit...

0 Likes 2 Replies

How do you grade this code?

Hi; On my journey to learn OOP I finally managed to make some progress in OOP. Still there is a worl...

0 Likes 3 Replies
posted 8 years ago

Multitons in IoC container?

I haven't actually used Laravel yet, but I was curious as to whether its dependency injection contai...

0 Likes 1 Replies

Getting package config from service provider register()

I've been having issues with loading config from within the register() method of a service provider....

0 Likes 0 Replies

Basic implementation of cookieless sessions

Not a question but documentation case for all who needs it. Please note this is not complete solutio...

0 Likes 1 Replies

[Package] Laravel Modularizer

#Laravel 4 Modularizer https://github.com/sendyHalim/laravel-modularizer Note: sorry if my english i...

0 Likes 0 Replies

Global variable/singleton available to all models/repositorys?

Hi, I need to be able to access the $site_id in most parts of my application as content will differ...

0 Likes 1 Replies

Route group capturing every route

I'm using creolab/laravel-modules to create an application and the administration area will be a mod...

0 Likes 0 Replies

Single Responsibility Principle. How can I design this code properly?

Hi guys; I have been struggling with this. I really appreciate some help. I don't know how to learn...

0 Likes 3 Replies

container bindShared

Illuminate\Container bindShared is performing the callback each load... doesn't it suppose to execut...

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

© 2023 Laravel.io - All rights reserved.