Support the ongoing development of Laravel.io →

297 Threads

posted 6 years ago

Cache option for Facades

Use Case When the facade resolves a class (with the help of a service provider) whose properties are...

0 Likes 0 Replies

Laravel Repositories and Eloquent ORM.

Hello, so I'm writing an application and until now I was working with Accessors, Mutators and Query...

0 Likes 7 Replies

ServiceProvider boot() ...help please!!!

Hi guys, can you explain me one thing? in which case the boot() method in a service provider is call...

0 Likes 7 Replies

Multi-tenant application approach

I'm trying to build a multi-tenant application with Laravel 5. I'm aware of already existing package...

0 Likes 3 Replies

Laravel 5.1 (LTS) Repository Class not found

Hello Like in the title, my repository class can't be found. My code: http://laravel.io/bin/Jx7y7 My...

0 Likes 2 Replies

Injecting Object into Controller using app->resolving

Hi, I have a question regarding resolving objects in the AppServiceProvider. Somewhere in my code (m...

0 Likes 0 Replies

Dynamic Reports Generation in laravel

I'm trying to develop a custom reports generation for my application, in which the user will dynamic...

0 Likes 0 Replies

Concrete classes stored in DB

Hey Laravellers. I'll get straight to the point: I currently have a inherited a project whereby I ha...

0 Likes 1 Replies

Can I automate the laravel installation process?

Is there a way I can install Laravel with a custom script or another Laravel iteself? How can I run...

0 Likes 2 Replies

@inject method throws error on live server

I am developing a laravel 5 app. In my code I inject a class that I created in App/Utilities/class.p...

0 Likes 1 Replies

View Composer not accepting string variable in view->with method

Hello, I am really stumped by this one issue... I have the following code in my custom view composer...

0 Likes 1 Replies
posted 7 years ago

How to set different binding in a testing environment

Hi, I am trying to see how to best approach to bind a mock dependency when testing. Assume I have a...

0 Likes 1 Replies

Laravel 4 DI Issue

Trying to get some dependency injection going here but I keep getting the following error: ErrorExce...

0 Likes 0 Replies

How to create a custom Flash Notifications service

Hello! I'd like to create something that allows me to save messages in the default flash session sto...

0 Likes 2 Replies
posted 7 years ago

mocking an IoC Container binding in codeception+mockery functional test

So I need to mock some Stripe API calls for a bunch of functional tests. I'm binding the mocks via...

0 Likes 1 Replies
posted 7 years ago

Singleton constructor being called twice?

I'm just getting my head round this whole DI thing, but something seems to be happening that I wonde...

0 Likes 2 Replies
posted 7 years ago

Laravel 4.2 app binding

Hello, I have a question about application binding, here is example from the documentation. App::bin...

0 Likes 0 Replies

Is there a way to automatically populate an object with Request data in a Controller method?

I'll try to keep this as short as possible. Basically I want to be able to do this: Let's say I have...

0 Likes 0 Replies

[L5.1] create facades using packages

I want to create a facades file in package and register it for app. i am looking for tutorial link P...

0 Likes 3 Replies

Multiple routes

Hello all, I have an application, called Hummingbird, inside /app/ and is initialised with all route...

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.

© 2022 Laravel.io - All rights reserved.