-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
When ever i enter my slug in my route i get The resource could not be found.
---- route ----
<?php
use App\Http\Controllers\HomeController;
use Illuminate\Support\Facades\Route;
Route::get('/help/{slug}', [HomeController::class, 'index'])->name('index');
---- end route ----
---- HomeController ----
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Contentful\Delivery\Client as DeliveryClient;
class HomeController extends Controller
{
private $client;
public function __construct(DeliveryClient $client)
{
$this->client = $client;
}
public function index($slug)
{
$entry = $this->client->getEntry($slug);
return view('entry', ['entry' => $entry]);
}
}
---- End HomeController ----
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels