2 years ago

Laravel - Route not accesable

Posted 2 years ago by Rainieren

Hello, I've come across something pretty weird. I made a route inside my web.php named Route::post('/vragen/create', '[email protected]'); which is supposed to store a new post. But whenever I try to access that route, it tells me the page non-existent. My PostController's store method looks like this:

public function store(Request $request)


        return redirect($post->path());

If have DD'd the method to see what will return but I can't even access that. What is causing this?, Because I can't create posts this way, If I try to make a post I get the error 'No Message' instead of the DD I am supposed to get returned. What is causing this?

This is my whole routes file

Route::get('/', '[email protected]')->name('home');
Route::get('/vragen', '[email protected]')->name('showQuestions');
Route::post('/vragen/create', '[email protected]');
Route::get('/vragen/{channel}', '[email protected]');
Route::get('/vragen/{channel}/{post}', '[email protected]');
Route::post('/vragen/{channel}/{post}/replies', '[email protected]')->name('addReply');
Route::post('/replies/{reply}/likes', '[email protected]');

Route::get('/aanbieders', '[email protected]')->name('showCompanies');
Route::get('/aanbieders/{channel}/{CompanyPost}', '[email protected]');

Route::get('logout', function() {
    return redirect('/');


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