Question By
Unsolved

wave middleware 404 not found

iamrida

Jul 11th, 2020 06:00 PM

I started working on Dashboard and I could access the content in the beginning but when I moved it into wave middleware : Route::group(['middleware' => 'wave'], function () {

Route::get('dashboard', '\Wave\Http\Controllers\ProductController@index')->name('wave.dashboard'); Route::get('product/{slug}', '\Wave\Http\Controllers\ProductController@product')->name('wave.dashboard.product');

});

And I access the link again I see only 404 not found Screen Shot 2020-07-11 at 1.57.45 PM.png

Screen Shot 2020-07-11 at 1.58.21 PM.png

For the product controller I have : Screen Shot 2020-07-11 at 1.51.22 PM.png

For the index blade I have : Screen Shot 2020-07-11 at 1.53.00 PM.png

Screen Shot 2020-07-11 at 1.53.33 PM.png

tnylea

Jul 13th, 2020 12:29 AM

Hey Mohamed,

Have you connected Stripe credentials to your application? The Wave middleware will try and detect if the user has a valid subscription. So I'm wondering if it is throwing this error because it cannot check.

Also, are you currently authenticated with a user when you try and visit that route?

Do you have a github repo you can share with me? Additionally, can you share your whole routes/web.php file.

Thanks! Let me know the info above and I'll help you troubleshoot further ;)