Support the ongoing development of Laravel.io →

388 Threads

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

How to mock facade from package?

Package Thujohn\Twitter; Twitter::shouldReceive() gives me error: Parse error: syntax error, unexpec...

0 Likes
4 Replies
Solved

One sample application for IoC, Facades and Services Provider

Please, anybody could explain the IoC, Facade and Services Provider with a short example? I have see...

0 Likes
4 Replies
Solved
posted 10 years ago

Lang::choice('setting', $count) problem when $count > 19

Hi everybody, I've been trying to localize my application and so I've been using the Lang helper fun...

0 Likes
3 Replies
Solved

[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

Add additional filter class to composer package

I use this package in my project https://github.com/tappleby/laravel-auth-token I want to add an add...

0 Likes
5 Replies
Solved
posted 10 years ago

ioc binding - closure vs. automatic resolution

Following official documentation for IOC (http://laravel.com/docs/ioc): class FooServiceProvider ext...

0 Likes
4 Replies

What should go in a Repository

Looking through Repository code and what everyone uses them for. It still seems they are pretty coup...

0 Likes
25 Replies
posted 10 years ago

BindingResolutionException using Schema\Blueprint and Builder

Hello eveyone, I am trying to create an application that creates custom tables and columns in my dat...

0 Likes
0 Replies
posted 10 years ago

App binding works in controller but not in command

I've got two simple classes: class FetchPosts implements FetchPostsInterface { } interface FetchPos...

0 Likes
1 Replies
posted 10 years ago

Class not found

I'm trying to make a repository pattern and I figured out how to make it. Now when I try to App::bin...

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