Support the ongoing development of Laravel.io →

4,312 Threads

posted 8 years ago

model save

Hi, I'm wondering if i'm the only one who got null when I save a model instead of true previously ?...

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

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

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
posted 8 years ago

Undefined property: Illuminate\Database\Eloquent\Collection::$class_name

Hi, I'm new to Laravel framework. I'm not sure I understand how the Eloquent/Model/Database stuff wo...

0 Likes
1 Replies

How to decrypt a particular model field when retrieving through hasMany relationship

I am retrieving a list of articles that belong to each blog of the current user like this: return $c...

0 Likes
3 Replies

3 level cascading dropdown list in Laravel 5.2

I am trying to do a 3 levels dynamic or dependent dropdown list. i managed to fix the first two and...

0 Likes
0 Replies
posted 8 years ago

foreign keys, how to use it with fresh migrations?

Hi, What is the idea on setting up migrations with foreign keys as a fresh setup? so my idea is to b...

0 Likes
5 Replies
Solved

How to pass data to json from Database?

Hello, Here is my Row Query to get the data from database. $user = DB::table('users')->get(); I w...

0 Likes
7 Replies
Solved
posted 8 years ago

string as foreign key laravel migration not working?

Hi, When i make a migration with a string as foreign key, it don't work, but with an int its working...

0 Likes
1 Replies
Solved

View Data Filter Not Working

Hi Gaes I encountered a problem where I want to show data by year If the variable $ year I return th...

0 Likes
0 Replies

How to get child objects belonging to parent

I have a method that returns all the current user's blogs. User hasMany Blogs and Blog belongsTo Use...

0 Likes
2 Replies
Solved

Help with query

Hello, could somebody kick me into right direction how to build this kind of query in eloquent: SET...

0 Likes
0 Replies
posted 8 years ago

Laravel Eloquent eager load problem

In my blog application there users can post articles and comments on there. When I go to any user pr...

0 Likes
1 Replies

How do I use chunk to insert large amounts of data into database?

I would like to insert a large number of rows into my database using chunks, but I am not sure I am...

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