Support the ongoing development of Laravel.io →

4,597 Threads

Query relations - Forgets to put the table name in query

Hi! I have a structure like this : User Organizations_users Organization I want to check for the cur...

0 Likes
3 Replies

A question to ask about users table and user authentication

Hey people, I've some question to ask and i need some help and guidance and your expertise advises....

0 Likes
0 Replies

Updating data to database

Hi all, I've been working away on my app and to date I have been successful. I have stumbled across...

0 Likes
1 Replies

How to pull data from 2 tables that associate to 1 table?

I have users table that is associate to 2 other tables: posts, videos. And i want to pull all the da...

0 Likes
1 Replies

Custom Pivot for MorphMany relationship

Hi everybody I'm trying to create a custom pivot for a MorphMany relationship. I've done it the usua...

0 Likes
3 Replies

Translate of SQL request

I have a complicate request that I hope translate with Eloquent ORM or with Query Builder, but I can...

0 Likes
2 Replies
Solved

Error in default migration zizaco/entrust

Hello everyone. I'm trying to install zizaco/entrust but are facing a problem in migrations, I think...

0 Likes
0 Replies

fluent query builder, mysql group issue

I have 3 tables: users, blogs, blogcomments. on the main blog page, i want to get the blog's title,...

0 Likes
0 Replies

Best way to create User Post relationship?

I have User and Post model. And my question is where to put method's like getAllMyCommentedPosts() o...

0 Likes
1 Replies

Model: columns' names in uppercase on MySQL, a request for better solution

Hi, It's my first post and, in fact, isn't properly a question, but a request for suggestions becaus...

0 Likes
0 Replies

user images and profile image

How do you handle user images and profile pic? I have a table oft user images each row is an image a...

0 Likes
1 Replies

Symfony \ Component \ Debug \ Exception \ FatalErrorException Call to undefined method Illuminate\Database\Eloquent\Collection::save()

I am trying to call Eloquent's save() method on an existing record but getting an error from Illumin...

0 Likes
2 Replies
Solved

Upgrade to 4.2 - DB Queries return nothing

$locations = Locations::find(1); // null $locations = Locations::all(); // [] $locations = Locations...

0 Likes
3 Replies

Getting Application in Production on Running migration!

When I am running a migration from command line I am getting the response Application In Producti...

0 Likes
4 Replies

Autocomplete not showing results

I'm try to add autocomplete to a form and it's not showing the results plus it's saying that 2 rows...

0 Likes
5 Replies

Display data on different views

Hello guys, I have some posts. How can i display for example on profile page just the posts of a spe...

0 Likes
1 Replies

Eloquent object ogininal values are not the same as the attribues

Hi, I want to display a value from my model, but it always gives me '0' as an integer while the colu...

0 Likes
2 Replies
posted 10 years ago

Add onDelete constraint to an existing foreign key?

I'm struggling to get my head around migrations at the minute. I have an existing table with a forei...

0 Likes
0 Replies

model id is 0 inside eloquent created event

Inside my function that is triggered by the 'created' model event, my object id is 0. My id column i...

0 Likes
0 Replies

How to drop table contents with artisan tinker?

I have tried in tinker cli: Schema::drop('pages') but it just drops the table 'pages', how can i dr...

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.