List of commits:
Subject Hash Author Date (UTC)
Fiddle favoriting event implementation 5ea13953d8fdd949d122ff3d63bc427d2ac78a43 EyadMohammedOsama 2019-08-07 23:21:04
Added a trigger to fiddle favoriting 435bb1aacd90b540e822b68858a665955e7b6f35 EyadMohammedOsama 2019-08-07 23:20:20
Added Pusher.js ca81b2a591c04e678e415c3fdf10a41a3a11ac62 EyadMohammedOsama 2019-08-07 23:18:08
Configured broadcasting 61ad3285cfc37dfb4265874cf7b3496992846f7e EyadMohammedOsama 2019-08-07 23:17:36
Installed PHP Pusher 85bd7fa0401d69eff36ea21fa6bb60f28601ac14 EyadMohammedOsama 2019-08-07 23:16:31
Initial commit 4a865759d403eda3854c69005a3cfdbd7d737096 EyadMohammedOsama 2019-08-05 21:13:21
Added several new routes 85e08b7120e6ba249f3ecd523234c72f5c19c1cc EyadMohammedOsama 2019-08-05 21:12:53
Added several new routes ba3fca128d64c47fa0e9c8c08fd5e0a6635b08ae EyadMohammedOsama 2019-08-04 23:15:44
Configured sessions table 749fa85c728ab023aee73bff8f08677063edc70a EyadMohammedOsama 2019-08-04 23:15:19
Added a file system to store avatars e260a81485424f72c8a5154a91d5f7c83e180af5 EyadMohammedOsama 2019-08-04 23:15:00
Added new validation rules 42c291c0cbc2181e1fd9cf87991fded5550512cf EyadMohammedOsama 2019-08-04 23:14:36
Added new controllers c7a9229044be1d910911b89a6a049c0e0b4bd3a9 EyadMohammedOsama 2019-08-04 23:14:08
Added new helper file d4d3fd48a15af64a3abaffee411ecf542670be9b EyadMohammedOsama 2019-08-04 23:13:20
Added new models 0af667e894277c7a08499ac0bb2a82650485ccb9 EyadMohammedOsama 2019-08-04 23:13:03
Added new views e4ba7fc0daf2c8a9200a76e8d122ea52a9e56972 EyadMohammedOsama 2019-08-04 23:12:09
Added a helper file 86cd8e39ae94a78b3caa4e5eedea0f465c5716dd EyadMohammedOsama 2019-08-04 23:11:00
Deleted some files 9c2486581af5e537a7f9ffa64b2b02e8c9d5f42e EyadMohammedOsama 2019-08-02 23:30:55
Updated to ignore Thumbs.db files 3baa87ecef6d298d4a8a2904baf08f7102f23074 EyadMohammedOsama 2019-08-01 21:27:32
Added SnackBar library 99f7cc6ce12deccc4c37ff89eb54d49e0e48d9c9 EyadMohammedOsama 2019-08-01 21:25:47
Added custom style file 99bb9924d4314c9e42be2f3be869b04aeaec134c EyadMohammedOsama 2019-08-01 21:25:28
Commit 5ea13953d8fdd949d122ff3d63bc427d2ac78a43 - Fiddle favoriting event implementation
Author: EyadMohammedOsama
Author date (UTC): 2019-08-07 23:21
Committer name: EyadMohammedOsama
Committer date (UTC): 2019-08-07 23:21
Parent(s): 435bb1aacd90b540e822b68858a665955e7b6f35
Signer:
Signing key:
Signing status: N
Tree: cb21e6fa03c66ba0e88242d0f32ad630e70846e5
File Lines added Lines deleted
app/Events/FiddleFavoritedNotification.php 47 0
File app/Events/FiddleFavoritedNotification.php added (mode: 100644) (index 0000000..ebdbad2)
1 <?php
2
3 namespace SICSF\Events;
4
5 use Illuminate\Broadcasting\Channel;
6 use Illuminate\Queue\SerializesModels;
7 use Illuminate\Broadcasting\PrivateChannel;
8 use Illuminate\Broadcasting\PresenceChannel;
9 use Illuminate\Foundation\Events\Dispatchable;
10 use Illuminate\Broadcasting\InteractsWithSockets;
11 use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
12
13 class FiddleFavoritedNotification implements ShouldBroadcast
14 {
15 use Dispatchable, InteractsWithSockets, SerializesModels;
16 public $username;
17 public $message;
18 public $owner;
19 public $title;
20 /**
21 * Create a new event instance.
22 *
23 * @return void
24 */
25 public function __construct($username, $owner, $title)
26 {
27 $this->title = $title;
28 $this->owner = $owner;
29 $this->username = $username;
30 $this->message = "User '${username}' has favorited your fiddle '${title}'.";
31 }
32
33 /**
34 * Get the channels the event should broadcast on.
35 *
36 * @return \Illuminate\Broadcasting\Channel|array
37 */
38 public function broadcastOn()
39 {
40 return ["FiddleNotifications-" . $this->owner];
41 }
42
43 public function broadcastAs()
44 {
45 return "FiddleFavorited";
46 }
47 }
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/EyadMohammedOsama/sicsf

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/EyadMohammedOsama/sicsf

Clone this repository using git:
git clone git://git.rocketgit.com/user/EyadMohammedOsama/sicsf

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main