I'm using laravel to create a simple social network. Users can type @ in the post area to get a list of their friends to mention them. Every mention in a link like this (using zurb/tribute from github)
<a type="mention" href="/user/Jordan" title="Jordan">Jordan</a>
Normal links other than mentions won't have type='mention'
Now when I get the post and insert it into the database I need to get a list of users mentioned in the post. I'm looking for links which have the type ='mention'
and if there's any I want to get the title of everyone to insert into the notification system. What PHP code do I need to add in this if
statement?
if(stristr(request('post'),' type="mention" ')){
}