for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* rmarchiv.tk
* (c) 2016-2017 by Marcel 'ryg' Hering
*/
namespace App\Listeners;
use App\Events\GameView;
class GameViewListener
{
/**
* Create the event listener.
*
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct()
//
}
* Handle the event.
* @param GameView $event
public function handle(GameView $event)
\DB::table('games')
->where('id', '=', $event->gameid)
->increment('views');
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.