Support the ongoing development of Laravel.io →

4,311 Threads

posted 10 years ago

How to make Eloquent realtionship with two FK reference on same table to one PK in other table ?

I have a table which call matches , so i want to make relationship to other table teams with FK team...

0 Likes
0 Replies
posted 10 years ago

Excluding IDs from database result - how to design it properly?

Hello guys! I want to exclude some IDs from query result using whereNotIn() method. It's not a probl...

0 Likes
2 Replies
Solved
posted 10 years ago

Relationship OrderBy

Hi All, Hope everyone doing well... The orderBy is being ignored and has no affect whatsoever $a = B...

0 Likes
1 Replies

Eloquent -- Confused On How To Work With Lookup Tables?

I originally coded my application completely omitting models and just using raw queries in my own ty...

0 Likes
1 Replies

Binary(longblob) files from MySQL larger than 1MB are getting truncated when trying to copy table row to another table.

I am currently storing files in my mysql table. I have no problem saving large files in the table as...

0 Likes
2 Replies

Eloquent relationship passing array to view

Hi. Using this structure: http://stackoverflow.com/questions/20801859/laravel-eloquent-filter-by-col...

0 Likes
0 Replies
posted 10 years ago

Cascading Deletes - Child Event Order?

I have two models, Video and File. A video may have multiple files. When I delete a file from the d...

0 Likes
1 Replies
Solved

Why you delete the table first before seed?

I read some posts about database seeding. I find the seeder's 'run' method begin with DB::table()-&g...

0 Likes
2 Replies
Solved
posted 10 years ago

Eloquent only grabbing one record in many-to-many

Hi there, I have a many-to-many setup, and I'm only receiving one record when I grab the relationshi...

0 Likes
0 Replies

Pivot not updating

$student = Student::find(20); foreach($student->classes as $student_class) { if($student_c...

0 Likes
3 Replies
Solved

Accessor not caled

Hi folks, i try to use an accessor in my models. The column in the database is called 'status'. My a...

0 Likes
7 Replies
Solved
posted 10 years ago

no results in controller but view says otherwise

i've been trying to figure this out all weekend long and i can't seem to find the answer. my client...

0 Likes
1 Replies
Solved

Could not save in DB

Hi, I am having trouble to insert record in DB, here is my code $member = new User; $member->user...

0 Likes
2 Replies
posted 10 years ago

Call to undefined method LocationsTipo::all()

Hi, can someone explain me why I have this error if my model is: <?php class LocationsTipo exten...

0 Likes
7 Replies
Solved
posted 10 years ago

How can I attach many-to-many models using something other than id?

I would really like to do something like this: $this->form->fields()->attach('email'); $thi...

0 Likes
1 Replies
Solved

Postgres with Laravel produces weird results with nulls. And strings. Maybe.

I reckon that using Postgres with Laravel produces weird results with nulls. Check out the error mes...

0 Likes
0 Replies

Laravel 4 + Excel

I have a view that show the registered users data from database. I need to have a button that create...

0 Likes
4 Replies
Solved
posted 10 years ago

ReflectionException: Class SomeClass does not exist – Laravel 4.1.*

Hello, I need help! I generated new resource called procedures and in routes.php I added Route::reso...

0 Likes
1 Replies
Solved

Laravel XML-RPC

Has someone implemented xml-rpc in laravel?

0 Likes
4 Replies

security of input::get and eloquent

$comentario = new Comentario; $comentario->autor = Input::get('no...

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