Support the ongoing development of Laravel.io →

91 Threads

How to override app routes from package?

Greeting guys, I'm just about to start developing my very first Laravel Package using v4.2 & enc...

0 Likes
3 Replies
Solved

Is always needed to return something in ServiceProvider::provides() method?

Hi. I's a simple question. If I have something like this in my service provider: public function boo...

0 Likes
3 Replies
Solved

Alias service class to service class

I'm using https://github.com/kristijanhusak/laravel-form-builder for my forms. It creates 2 services...

0 Likes
1 Replies
Solved
posted 10 years ago

Artisan Commands and Exceptions

I have an artisan command with a fire() method that looks something like this; public function fire(...

0 Likes
2 Replies
Solved

Route Model Binding with Repositories

Hi, I have an application where there are multiple subdomains (portals) running from a single instan...

0 Likes
4 Replies
Solved

How to modify $app at runtime?

Hi! i would like to dynamically change a path in my laravel 5.3 app from a middleware. How can I acc...

0 Likes
6 Replies
Solved

Dependency injection + ServiceProvider with custom class?

I'm having trouble understanding best practices for using dependency injection with my custom classe...

0 Likes
6 Replies
Solved
posted 8 years ago

Service provider ignored

I create a new service provider by running php artisan make:provider ComposerServiceProvider. After...

0 Likes
1 Replies
Solved
posted 10 years ago

Laravel Core - IOC bindShared() VS share()

bindShared() is mostly conquering the core laravel classes, but share() is still being used in certa...

0 Likes
2 Replies
Solved
posted 10 years ago

Dynamic class and dependency injection question: Argument 1 passed... blah blah

I've read the docs, all sorts of web pages, and every kind of answer/question I could find but still...

0 Likes
2 Replies
Solved
posted 8 years ago

Checking whether a IOC container is defined or not

Hi, In my code I am defining an IOC container like App::instance('myapp.value', $value); In other...

0 Likes
1 Replies
Solved

How to get HTTP request in route model binding closure

Hi there, I am trying to get access to the HTTP request in my route model binding closure. This is b...

0 Likes
2 Replies
Solved

Overridden core class does not work when in artisan

In a fresh Laravel build, I cannot get overridden IoC bindings to work everywhere in the application...

0 Likes
1 Replies
Solved

Relationship cant access recently created model

Hello, I have this scenario: Route::group([ 'middleware' => ['reservation'], 'prefix' =&g...

0 Likes
1 Replies
Solved
posted 9 years ago

Dependency Injection giving me InvalidArgumentException The HTTP status code "-1" is not valid.

I have set up a repository interface and a repository class namespace Repository\Findbrok\Contracts;...

0 Likes
1 Replies
Solved
posted 9 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 9 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

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

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

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

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.