stream-laravel | Laravel Client - Build Activity Feeds & Streams with GetStreamio | Notification library
kandi X-RAY | stream-laravel Summary
kandi X-RAY | stream-laravel Summary
stream-laravel is a Laravel client for Stream. You can use this in any Laravel application, or in any application that uses Eloquent ORM (illuminate/database) as a standalone ORM. You can sign up for a Stream account at Note there is also a lower level PHP - Stream integration library which is suitable for all PHP applications.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create an activity .
- Enriches the aggregated activities .
- Inject objects into activities .
- Register the resources .
- Register the feed manager .
- Boot the package .
- Creates a reference for a model instance .
- Follow a user
- Get news feeds .
- Set an activity item .
stream-laravel Key Features
stream-laravel Examples and Code Snippets
Community Discussions
Trending Discussions on stream-laravel
QUESTION
running
php artisan serve
PHP Fatal error: Type of App\Http\Kernel::$middlewareGroups must not be defined (as in class Illuminate\Foundation\Http\Kernel) in /Applications/MAMP/htdocs/project-api/app/Http/Kernel.php on line 7
My package.json
...ANSWER
Answered 2020-Aug-26 at 23:15Remove keyword "array" from protected array $middlewareGroups = [
. Should be: protected $middlewareGroups = [
. Your IDE probably added this type declaration.
QUESTION
I'm using stream-laravel and I want to integrate @-mentions to my post model. I now added in my activityNotify()
the user who is mentioned in the post. This works fine. But, when I retrieve the notification feed, the verb is 'post', because the activity is of course a post.
For the frontend I want to know when it's an @mention. What is the best way to handle this?
I notify the @mention users like this
...ANSWER
Answered 2020-Jan-22 at 09:58Probably the simplest approach is to parse the activity body field and search for @username
. When found render the activity as a mention instead of a regular post.
You can also add custom data to the activity; ie. add a mentioned_user_ids custom field and include the IDs of all users that were mentioned.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install stream-laravel
A Twitter-like feed
Instagram / Pinterest Photo Feeds
Facebook-style newsfeeds
A Notification System
Lots more...
Begin by installing this package through Composer. Add 'GetStream\StreamLaravel\StreamLumenServiceProvider' to the list of providers in bootstrap/app.php. Manually create a config file in ./config/stream-laravel.php... and tell Lumen to configure it, in bootstrap.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page