Support the ongoing development of Laravel.io →

4,311 Threads

Laravel ignores User table

I have a fresh install of Laravel 5 running on WAMP. So far everything is working well as far as rou...

0 Likes
4 Replies
Solved

bloated Laravel controller, am i over doing it?

greetings, as naive as i feel, i wanna create a thread about my controller. this controller manages...

0 Likes
2 Replies

Query: Top 10 products?

Hi, I can't figure out how to filter my top products from the DB. I'm searching for an Eloquent way...

0 Likes
3 Replies

Laravel 4 -Call to undefined method

hi everybody. I have function scopeClubBlog at model. But It not working when set namespace. I th...

0 Likes
4 Replies
Solved
posted 9 years ago

Error using Eloquent in tinker

When ever i try to create a new Eloquent object via tinker, i keep facing this error. Is there a wa...

0 Likes
1 Replies

Inserting JSON into $table

I having difficulties with taking an array of data and inserting it into my table. I know Im missing...

0 Likes
4 Replies

Update the data in table

As the title says, I have some data. I am trying to update it just using updateOrCreate() method but...

0 Likes
0 Replies

How to model redundant information?

I have been racking my brain to figure out the most 'eloquent' solution to this problem. Perhaps you...

0 Likes
2 Replies
Solved

Can anybody clarify how eager loading works?

I am trying to implement my own Achievements system that assigns Titles to Users. The TItles are awa...

0 Likes
2 Replies

Eloquent float values be rounded

Hey, I have an existing database with float(10,2) fields in some tables. When I return Model::first(...

0 Likes
24 Replies

Eloquence - a must have package for eloquent

Do you use Eloquent in your apps? It's simply fun to work with, right? I think the same, but after s...

0 Likes
3 Replies

Cannot initialize a class from external library

Hello guys, Im a newbee with laravel and php and i am having a huge problem that might be really sim...

0 Likes
10 Replies
posted 9 years ago

Get isert id after in user table

Hello , I have a problem using the get function id ( $ user- > id ) . This function instead of in...

0 Likes
1 Replies

Help with Eloquent query with relations

Hello, I am getting Unknown column 'categories.slug' What am I doing wrong in L5? Thanks [code] $pro...

0 Likes
6 Replies

Self referencing polymorphic relationship

So just wondering if this is possible (or even smart) before I dive in too quickly. I have three mod...

0 Likes
0 Replies

Model relations in an inheritance hierarchy

Hello guys! I am building an application and I have these models: User, Announcement, BookAnnounceme...

0 Likes
0 Replies

Is it possible to query 'where' on eager loaded relationship without a join?

Is it possibly to make a WHERE query on a eager loaded relationship? Say my users table has a name,...

0 Likes
2 Replies
Solved

Mysql CRUD generator in Laravel 4

Hello to everyone, there is any way to create the CRUD from a database such as other frameworks like...

0 Likes
3 Replies
Solved
posted 9 years ago

Explicit declared attributes

Laravel declares the set of attributes for a class runtime by taking the according table fields. Is...

0 Likes
2 Replies

Eloquent: Filter by joining two "belongsToMany" relations

I have the following tables in my database: recipes id name users id name badges id name badge...

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.

© 2024 Laravel.io - All rights reserved.