for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Chriscreates\Blog\Listeners;
use Chriscreates\Blog\Events\PostViewed;
class StoreViewData
{
/**
* Handle the event.
*
* @param PostViewed $event
* @return void
*/
public function handle(PostViewed $event)
$event->post->increment('views');
increment()
Illuminate\Database\Eloquent\Model
This check looks for access to methods that are not accessible from the current context.
If you need to make a method accessible to another context you can raise its visibility level in the defining class.
}
This check looks for access to methods that are not accessible from the current context.
If you need to make a method accessible to another context you can raise its visibility level in the defining class.