Support the ongoing development of Laravel.io →

4,311 Threads

Advanced ratings based on votes in different categories

I'm quite new here and are REALLY stuck on this. So i figured I could give this forum a try... I'm w...

0 Likes
4 Replies

Many-to-many or other way?

Hey, i'm just starting to plan a laravel project. I have a User-, BranchOffice- and a Company-Model...

0 Likes
1 Replies

save() function don't work for another of table

hi, \n i use save() function for saving detail of table and this is work when i want change default...

0 Likes
3 Replies

Nested Dependant Relationships

Hey everyone, we're trying to figure out how to do what I call "nested relationships" in L...

0 Likes
0 Replies

Query by pivot attributes?

I have two tables, call them table1 and table2, corresponding to Table1 and Table2 models. Those two...

0 Likes
0 Replies

Conditinaly Where Clause

Hey, i have two relational tables, funs and user_votes, user_votes is saving votes for funs, likes o...

0 Likes
2 Replies

Eloquent N:M relation saveMany problem...

Hi, I have problem saving N:M relation data saving. Model 1 "Books": class Book extends \E...

0 Likes
2 Replies
Solved
posted 10 years ago

where is "where" method in Eloquent(Model) Class

http://laravel.com/api/master/Illuminate/Database/Eloquent/Model.html "where()" method is...

0 Likes
5 Replies
Solved

Call to undefined method stdClass

What am I doing wrong? I have a 'Category' model that is the model for my table 'categories'. In the...

0 Likes
2 Replies
Solved
posted 10 years ago

simple relationship sql query

i am using laravel 5.0 develop version class User extends Model implements UserContract, RemindableC...

0 Likes
0 Replies
posted 10 years ago

Eloquent w/ eager loading

Hi everyone! My very first post and I'm quite excited to be on board. Would just want to say that La...

0 Likes
1 Replies

Eloquent: custom logic for model property

Hello! I would like to learn how to integrate custom logic to a model property. For example, some re...

0 Likes
2 Replies
Solved
posted 10 years ago

join table when hasOne relationship

http://laravel.com/docs/eloquent class User extends Eloquent { public function phone(){ ret...

0 Likes
1 Replies
Solved

Deleting row with lowest id from database?

Hello. I'm still learning Laravel and I want to remove the row with lowest id from my database. I tr...

0 Likes
8 Replies
Solved

Detect users number on editing page

Hi, I would like to know, how to detect if X users is editing a data from the same page. For example...

0 Likes
4 Replies

Insert a student, who's a user, in a transaction with Eloquent

I need to insert a student who belogs to a user table. I have something like: DB::transaction(functi...

0 Likes
1 Replies

Command Bus Architecture

I'm hoping there's some gurus out there when it comes to architecture and design patterns that could...

0 Likes
0 Replies
posted 10 years ago

Model`s JSON form misses some fields

When I return a JSON form of a model, It only contains some fields and misses others, while protecte...

0 Likes
1 Replies
Solved
posted 10 years ago

Eloquent Model Namespacing Trick (Any Consequence?)

I ran the following code below and it worked. Are there any consequences? namespace MyApplication\Th...

0 Likes
5 Replies
Solved

Database schema / relations help

Hey guys, I made a thread yesterday, regarding an issue I had with my application. I have managed to...

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.