Support the ongoing development of Laravel.io →
Precaseptica

Precaseptica

Joined 21 Feb 2014

Statistics

Threads 3
Replies 8
Solutions 1
Articles 0
posted 11 years ago

Checking if object is related in many-to-many

I have a Post model with the following function: public function tags() { return $this->belongs...

0 Likes
1 Replies
Solved
posted 11 years ago

CSS reference to files

Hey guys. Just wondering if there was a smarter way of using the url() reference in .css files withi...

0 Likes
4 Replies

Passing multiple db variables from Controller to View

return View::make('home')->with(array('posts' => $posts)); The above is working for me, so I...

0 Likes
7 Replies
Solved
replied 11 years ago

Passing multiple db variables from Controller to View

Where in the above do you point to the column post_id as being the fk we're interested in? How would...

0 Likes
replied 11 years ago

Passing multiple db variables from Controller to View

Am I correct in assuming I need to fix my db setup to include foreign keys?

0 Likes
replied 11 years ago

Passing multiple db variables from Controller to View

petercoles said: Providing you have your relationship between posts and comments set up correctly,...

0 Likes

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.

© 2026 Laravel.io - All rights reserved.