This commit adds functionality for editing keywords and description of selected file. This commit also includes JS library for syntax highlighting (https://highlighjs.org)
39 lines
627 B
PHP
39 lines
627 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Events\Event;
|
|
use App\Models\File;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
|
|
|
class EditFile extends Event
|
|
{
|
|
use SerializesModels;
|
|
/**
|
|
* @var File
|
|
*/
|
|
public $file;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @param File $file
|
|
*/
|
|
public function __construct(File $file)
|
|
{
|
|
//
|
|
$this->file = $file;
|
|
}
|
|
|
|
/**
|
|
* Get the channels the event should be broadcast on.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function broadcastOn()
|
|
{
|
|
return [];
|
|
}
|
|
}
|