Support the ongoing development of Laravel.io →

Precaseptica

Joined 21 Feb 2014

Statistics

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

Likes Replies
Solved
posted 8 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...

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

Likes Replies
Solved
replied 8 years ago

Checking if object is related in many-to-many

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

0 Likes
Solved
replied 8 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 8 years ago

CSS reference to files

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

0 Likes
replied 8 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 8 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.

© 2022 Laravel.io - All rights reserved.