for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Controllers\enso\HowTo\Video;
use Illuminate\Routing\Controller;
use LaravelEnso\HowTo\Http\Resources\Video as Resource;
use LaravelEnso\HowTo\Models\Video;
class Index extends Controller
{
public function __invoke()
return Resource::collection(
Video::with(['poster', 'tags'])->get()
);
}