for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
namespace App\Events;
use App\Model\Page;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
class PageWasVisited
{
use Dispatchable, InteractsWithSockets, SerializesModels;
Illuminate\Queue\SerializesModels
App\Events\PageWasVisited
$id
$class
$connection
/**
* @var Page
*/
public $page;
* Create a new event instance.
*
* @param Page $page
public function __construct(Page $page)
$this->page = $page;
}
* Get the channels the event should broadcast on.
* @return \Illuminate\Broadcasting\Channel|array
public function broadcastOn()
return new PrivateChannel('channel-name');