Support the ongoing development of Laravel.io →

4,606 Threads

Calling eloquent relation multiple times doesn't return data

I'm having this strange behavior in Laravel 5.1 where when I call the relation of an eloquent model...

0 Likes
0 Replies

Changing Eloquent models database connection at runtime

Is there any way to force Eloquent models to re resolve the connection they were instantiated with?...

0 Likes
3 Replies
Solved

Help Undefined Offset Error

Hi. This is a code for search. Anyway each time i try to search with a term that is NOT in the datab...

0 Likes
0 Replies

PROBLEM: Multiple store of data using attach().

Im getting this error "Undefined offset: 1" what should I change here: Controller: pub...

0 Likes
0 Replies

array_merge(): Argument #2 is not an array

I get this error when I try to edit my users array_merge(): Argument #2 is not an array I've tried...

0 Likes
7 Replies
Solved

storing data in laravel

I'm trying to store the following incoming data into the DB, and it is successfully stored except on...

0 Likes
0 Replies

I don't get migration...

I just don't understand this concept of migrations could someone explain it in simple terms.. I know...

0 Likes
1 Replies

jQuery autocomplete not working if data taken from DB

Hi, jquery autocomplete does not work if i try to get data from a db table. It works if i define the...

0 Likes
6 Replies
posted 8 years ago

Elasticsearch Laravel : No alive nodes found in your cluster

I'm having issues getting elastic search to work with my larval project I'm trying to index a docume...

0 Likes
0 Replies
posted 8 years ago

Problem to simply get data with 3 tables

Hello everyone ! I began laravel one week ago, and today I decided to properly use eloquent. So I wi...

0 Likes
2 Replies

Saving multiple data in database

What should I change to save multiple data here? Thanks in advance. This should be the output fsr_nu...

0 Likes
0 Replies

Why no alert is showing in Laravel 5?

this is my PostController.php, <?php namespace App\Http\Controllers; use Illuminate\Http\Reques...

0 Likes
1 Replies

Eloquent Lookup Tables and Dynamic Model Creation

So I've been working on a project for a few weeks now and have just picked up Laravel because of it...

0 Likes
0 Replies

Sync or attach by something other than an ID?

I'm following along with examples in the docs, and am playing around with many to many relationships...

0 Likes
4 Replies

Undefined Variable 'posts' - Laravel 5

In my ShowController, I returned a view with variable posts, like <?php namespace App\Http\Contr...

0 Likes
1 Replies

Handling big amounts of related models (creation and updates)

Hi, I've got the following 2 models: Share -> hasMany() -> Shareprices in a Console Command sc...

0 Likes
0 Replies

Query a many to many relationship inside another relationship.

Hello guys, i have been a little confusing to build a query as described bellow: I have a model call...

0 Likes
0 Replies

help with Request

Hello Im making an autocomplete search however when I type a letter instead of outputing only the da...

0 Likes
1 Replies

Json response removes key in array :(

Hi dd my array looks like this: array:8 [▼ 0 => "promo\1\images\2.jpg" 1 => &quo...

0 Likes
3 Replies
Solved

How To Change In Percent

Gaes How To value change in percent $chartDukungan = $dukungan->map(function ($item) {...

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