musonza / laravel-activity-streams Goto Github PK
View Code? Open in Web Editor NEWWIP
WIP
Command composer require musonza/laravel-activity-streams does not work, because the package is not at packagist
Hi there, do you have any plans to make compatible with laravel 7.0
How much of Activity Streams 2.0 this package implements? It aims to fullfil the specification completely? Congratulations you have a lot of good code here!
In ActivityObject
interface getExtraData
method which i thought enough for including extra data to ActivityStream but it seems ReturnsExtraData
implementation required for adding extra data. Is it necessary to implement another interface for extra data?
laravel-activity-streams/src/ValueObjects/ActivityObject.php
Lines 39 to 45 in aea363e
On 8.0 version this line breaks in the commented line below:
Schema::create('feeds', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('feedable_type');
$table->string('feedable_id')->unsigned(); //As a string field it does not support unsigned
$table->unique(['feedable_id', 'feedable_type']);
$table->text('extra')->nullable();
$table->timestamps();
});
Probably because of this error the constraints also break with error:
SQLSTATE[HY000]: General error: 3780 Referencing column 'activity_id' and referenced column 'id' in foreign key constraint 'feed_activities_activity_id_foreign' are incompatible.")
$table->bigIncrements('id');
$table->bigInteger('activity_id');
$table->bigInteger('feed_id');
$table->unique(['feed_id', 'activity_id']);
$table->text('extra')->nullable();
$table->timestamps();
$table->foreign('activity_id')
->references('id')
->on('activities')
->onDelete('cascade');
$table->foreign('feed_id')
->references('id')
->on('feeds')
->onDelete('cascade');
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.