mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-05 10:48:48 +00:00
143 - Testing Events
This commit is contained in:
23
app/Events/ConcertAdded.php
Normal file
23
app/Events/ConcertAdded.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use Illuminate\Broadcasting\Channel;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Broadcasting\PrivateChannel;
|
||||
use Illuminate\Broadcasting\PresenceChannel;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Broadcasting\InteractsWithSockets;
|
||||
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
||||
|
||||
class ConcertAdded
|
||||
{
|
||||
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||||
|
||||
public $concert;
|
||||
|
||||
public function __construct($concert)
|
||||
{
|
||||
$this->concert = $concert;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user