for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mpociot\CaptainHook\Http;
use Illuminate\Http\Request;
use Laravel\Spark\Http\Controllers\Controller;
class WebhookEventsController extends Controller
{
/**
* Create a new controller instance.
*
* @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()
$this->middleware('auth');
}
* Get all of the available webhook events.
* @return Response
public function all(Request $request)
return collect(config('captain_hook.listeners', []))->transform(function ($key, $value) {
return [
'name' => $value,
'event' => $key,
];
})->values();
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.