forked from eatvio/eatvio-infra
18 lines
376 B
PHP
Executable File
18 lines
376 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Services\FeedService;
|
|
use Illuminate\Contracts\View\Factory as ViewFactory;
|
|
use Illuminate\Contracts\View\View;
|
|
|
|
class FeedController extends Controller
|
|
{
|
|
public function index(): View | ViewFactory
|
|
{
|
|
$feed = (new FeedService())->showActualFeed();
|
|
|
|
return view('feed.index', ['posts' => $feed]);
|
|
}
|
|
}
|