Randy_Johnson
4 months ago
355
3
General

URL 404 Issue

Posted 4 months ago by Randy_Johnson

I am having an issue where I am trying to use the helper of the URL instead of the route helper. The confusing thing is that I had it working, and now even though everything is pointing to the fact it should work, I am still returned with a 404.

Am hoping some insight can help.

View

<a href="{{ url('checkout', ['basic']) }}" class="btn btn-dark btn-lg btn-block" style="color: white;">Purchase</a>

Route

Route::namespace('CoteHeath\Customer')->prefix('cuser')->name('cuser.')->middleware('auth')->group(function () 
{
    Route::get('checkout/{slug}', '[email protected]');
});

Controller

public function index($package)
{
	echo "Hello world";
}

Please sign in or create an account to participate in this conversation.