Support the ongoing development of Laravel.io →

4,311 Threads

How to update belongs to relationship

Hello I have an error when i update belongs to relationship User Model public function profile()...

0 Likes
0 Replies

User model not reflect changes

Hi friends, I am trying to change the User model in laravel, but after changing it and get the resul...

0 Likes
1 Replies

Can't save UTF-8 to mysql

Hi, I'm trying to save records to my DB that have Chinese characters in them, but they're showing up...

0 Likes
2 Replies
Solved

One-to-Many Relation not working properly

I have two models, Client and Attachment, the relation is one to many since a client can have many a...

0 Likes
0 Replies

Please read my code and bash me!

Hi, this is my update function for my Keyword model. I know that it is terrible and I would want to...

0 Likes
2 Replies

Laravel Repositories and Eloquent ORM.

Hello, so I'm writing an application and until now I was working with Accessors, Mutators and Query...

0 Likes
7 Replies
posted 8 years ago

Optimizing query

Hi guys, Im using Model::paginate(50) on my code. I receive the output below as SQL. The load time i...

0 Likes
3 Replies

Using config facade database prefix in class model?

I have several database tables - some use a prefix, some don't. So, I'm going through the class mode...

0 Likes
2 Replies
Solved

Typeahead not working with Laravel 5.1

I wonder why this is not pulling records from the database. I have been on this for days. All I want...

0 Likes
2 Replies
posted 8 years ago

Problem with Data from Table in Collection

hello, just learning L5 and one question: a controller uses a model to get the data from a table. i...

0 Likes
0 Replies
posted 8 years ago

Problem removing item from collection

I'm having a problem removing an item from a collection. I have a model called Class that represents...

0 Likes
1 Replies

Call to undefined method Illuminate\Database\Query\Builder::cantieri()

Hello, i'm banging my head against this bug for 3 hours without finding the problem. The error refer...

0 Likes
0 Replies

Hi I am getting this error please help me..

Call to undefined method Intervention\Image\Facades\Image::save()

0 Likes
0 Replies
posted 8 years ago

Model Observers, not working for 'Update'?

Im having trouble trying to get my model observer to work.. It is working as expected for create and...

0 Likes
0 Replies

Cannot access data in array

Hi I am trying to access the sale data in a relationship array, this is my query and json output on...

0 Likes
4 Replies
Solved
posted 8 years ago

Laravel 5.2 relationships between users and profiles tables

Hello guys, I am tyring to connect my two tables which are they 'users' and 'profiles' Here is my co...

0 Likes
0 Replies

Selecting based on Latest Record in Pivot Table

I have a scenario where States are assigned to tasks through a pivot table. The state of each task g...

0 Likes
1 Replies

issues using an elequent class

Hi All, I'm kind of hitting a wall in my expanding Laravel 5 testbed. I've created multiple migratio...

0 Likes
0 Replies

Multiple checkboxes edit - pivot table

Hello, here is my scenario: TABLE iten id iname TABLE profile id pname PIVOT TABLE profile_iten prof...

0 Likes
2 Replies

MassAssignmentException - Ignoring $fillable - Guarded ['*'] is Set

Greetings. I am having trouble with a MassAssignmentException. I was following along Jeffrey Way's v...

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.

© 2024 Laravel.io - All rights reserved.