Support the ongoing development of Laravel.io →

388 Threads

Lumen: adding a service that uses static methods (Bigcommerce API)

Hi all, I'm new to Lumen and Laravel, sorry if I'm missing something obvious! I'm working on a small...

0 Likes
0 Replies

Fetch data from 3 tables with Eloquent Relations

I have three tables namely users auctions bids bids table has foreign key to users table and auction...

0 Likes
1 Replies

L [5] : Use Eloquent model Globally without using namespace

I want the Eloquent model in app ->Models ->users.php and in every file i h...

0 Likes
4 Replies

Route::post does not execute method call anymore

I'm wondering what is the difference between: Route::post('insert/{slug}/{page_number}/{person_type_...

0 Likes
0 Replies

Extend command bus

Hi, I want to extend the command bus, just say I want to add a new function "Send($aggregate_id...

0 Likes
1 Replies

Injecting Config (for testable classes)

I'm just starting out with phpspec, trying to test my Image class which uses the Config facade. This...

0 Likes
2 Replies

What's the best test-friendly method to use Cache in models?

Hi, I've been looking at Cache docs: http://laravel.com/docs/5.0/cache I want to use Cache in my mod...

0 Likes
0 Replies

Aliasing not working

I have a controller that does this public function index() { Redirect::to('www.laravel.io'); } Retur...

0 Likes
1 Replies
posted 9 years ago

IoC not working properly when fetching data

Hi guys I'm trying to inject the validator class into my models // app/Model/Model.php <?php name...

0 Likes
0 Replies

Artisan Optimize Creates Fatal Class 'Controller' Not Found Error

Whenever I attempt to run php artisan optimize, when I visit my website, I get an error in my Apache...

0 Likes
2 Replies
posted 9 years ago

Service Provider/Container: Abstract Factory

hey guys, i'm coming from zf2. Beside a huge more complexity there was one feature i really liked: A...

0 Likes
9 Replies
posted 9 years ago

Model Observer Problem in Laravel 5

It works <?php namespace App; use Illuminate\Database\Eloquent\Model; class Test extends Model...

0 Likes
3 Replies

Laravel 5 package controllers

For my final project at school I'm going to build a Laravel 5 package. Now the past days I'm experim...

0 Likes
3 Replies
Solved

Controller based error handler

Hi everyone! I am creating a controller based application and stuck with error handling. I know I ca...

0 Likes
7 Replies
posted 9 years ago

Question about service providers

So I have a class which I'm using psr-4 to autoload. I have access to it and I can call it's methods...

0 Likes
1 Replies

Dinamic SSH envoy

Hi, I'm new using laravel. I'm finding a way to use ssh dynamically, using ssh-key or another way wi...

0 Likes
1 Replies

[L5] How Can I extend Laravel5 Request and Route

On Laravel 4.2 I can extend Custom Request class (http://laravel.com/docs/4.2/extending#request-exte...

0 Likes
2 Replies
Solved

Modifying existing AuthenticatesAndRegistersUsers & implementing licence key checks/permissions

I like how the new Auth & Password logic is laid out but I'm having some trouble getting my head...

0 Likes
0 Replies
posted 9 years ago

ioC keep getting new instance

Hi Ive got a class that is has a service provider ( Ive renamed the Class to hidden in this sample.)...

0 Likes
0 Replies

Globally include User model L5

Yo! I would like to use User::find to every page of my Laravel site, views and controllers. In Larav...

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.

© 2024 Laravel.io - All rights reserved.