Support the ongoing development of Laravel.io →

raphaelyancey

Joined 12 Feb 2014

Statistics

Threads 2
Replies 2
Solutions 1
Articles 0
posted 10 years ago

How to perform a tag search ?

Hi, Given this simple database setup: posts - id tags - id post_tag - id - post_id - tag_id ......

0 Likes
4 Replies
Solved
posted 10 years ago

Retrieve the sender username of a message with relationships

In my Message.php model, I defined the following: class Message extends Eloquent { public functi...

0 Likes
3 Replies
Solved
replied 10 years ago

How to perform a tag search ?

zenry said: $tags = ['a', 'b']; $posts = Post::whereHas('tags', function($query) use($tags) { $quer...

0 Likes
replied 10 years ago

Retrieve the sender username of a message with relationships

Works with Message::find(1)->userfrom()->first()->username;, thanks. I figured why it didn'...

0 Likes
Solved

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.