Support the ongoing development of Laravel.io →
posted 11 years ago

firstOrCreate giving a foreign key constraint error

Hi, Having a problem with using firstOrCreate with my Eloquent model $progress = Progress::firstOrCr...

0 Likes
2 Replies
Solved

I don't know filters on Collections

Hi, guys. I have 2 connections to databases with this configuration: /app/config/database.php 'princ...

0 Likes
0 Replies

Posible to use Laravel accept data from port TCP or UDP ?

I don't know Laravel or PHP can do like this ? accept data from port TCP or UDP ? eg. accept data fr...

0 Likes
1 Replies
posted 10 years ago

Setting debug false in Forge environment

Hey guys, I deployed my application, and im currently using environment variables for my sensitive i...

0 Likes
1 Replies
Solved
posted 10 years ago

Chumper datatables questions

Hello, I have 2 questions about this bundle. Is there a tutorial how to use this bundle. Can the...

0 Likes
0 Replies

Setting a global option for all forms in an application

Hey guys, I want all forms in my laravel application to have 'autocomplete' => 'off' by default,...

0 Likes
0 Replies
posted 10 years ago

One API, two clients (mobile vs. web app) - Best Practice?

As I understand current best practice, my web app's API should provide the same methods for both des...

0 Likes
4 Replies
posted 10 years ago

Looping Through Eloquent Results

Hi there, I have an eloquent query that is returning a 'show', and any 'show_ref's relating to it: S...

0 Likes
2 Replies
Solved

Is there a difference in Eloquent between hasOne & belongsTo when both keys are given?

If I fully specify the keys, is there a difference between hasOne and belongsTo relationships? Or if...

0 Likes
0 Replies
posted 10 years ago

string to array conversion

Hello, I have this form : {{ Form::open(['route' => 'abbonementen.store']) }} {{ F...

0 Likes
5 Replies

ErrorException (E_UNKNOWN) Undefined variable: products (View: ........

Hello, I am very new to laravel and this error has held me back for the past three hours ErrorExcept...

0 Likes
2 Replies
posted 10 years ago

trouble with controller

i'm biginner in laravel ,i tried to connected to controller with router: Route::get('/', array('as'...

0 Likes
1 Replies
posted 10 years ago

Laravel 4.3 composer update problem

When i clone repository and write composer update in cmd , i get : {"error":{"type&qu...

0 Likes
3 Replies

delete/alter data in model relationships

Hi, If I have something like this: $user = User::with('phones')->find(1); It gives me the user's...

0 Likes
1 Replies
posted 11 years ago

Call to a member function move() on a non-object

Hiii, I used upload file function but , I have error Call to a member function move() on a non-obje...

0 Likes
5 Replies

Can't add homestead vagrant box Ubuntu 14.04 32 bit

I'm trying to add homestead box to Ubuntu 14.04 32bit - is this possible? I've successfully installe...

0 Likes
2 Replies

Aggregate, Aggregate Roots and Repositories managent with Laravel

Hi, I was working with some Entities that may contain some other dependent Entities or Value Objects...

0 Likes
0 Replies

Testing controller

Hi All, I'm trying to test the index action of following controller: use Gnikoob\Controllers\BaseCon...

0 Likes
3 Replies
posted 10 years ago

Class inheritance issue

Hi, I have a base class which define a bunch of functions I will use for inherited classes. I have t...

0 Likes
2 Replies
Solved

Eloquent hasManyThrough relation and with a little customization.

Parent, Child and Tag are three models. Parent (id, other fileds ....) Child (id, parent_id, tag_id...

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

© 2025 Laravel.io - All rights reserved.