Support the ongoing development of Laravel.io →

Precaseptica

Joined 21 Feb 2014

Statistics

Threads 3
Replies 8
Solutions 1
Articles 0
posted 10 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 10 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 10 years ago

Checking if object is related in many-to-many

$post->tag()->contains($tag->id)

0 Likes
Solved
replied 10 years ago

CSS reference to files

elite123 said: Your code is correct, the image is relative to the stylesheet, so you need to go up...

0 Likes
replied 10 years ago

CSS reference to files

I have: public ---css ------cms ---------main.css ---images ------cms ---------bg_dark.jpg But I hav...

0 Likes
replied 10 years ago

Passing multiple db variables from Controller to View

It seems I just got the structure wrong. I found my answer here: http://laravel.com/docs/eloquent#on...

0 Likes
replied 10 years ago

Passing multiple db variables from Controller to View

protected $table = 'posts'; protected $primaryKey = 'id'; $this->hasMany('Comment'); The above g...

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.

© 2024 Laravel.io - All rights reserved.