Custom Routes throw Error
Created 7 years ago by mazedlx

I'm trying to make a super simple additional authentication piece that is separated from the pyro user's database.

I've edited the /routes/web.php file as follows:

<?php
use Illuminate\Http\Request;

Route::get('/customer/login', function () {
    return redirect('/de/login');
});

Route::post('/customer/login', function (Request $request) {
    dd($request);
});

/de/login is a pyro page which includes a form that posts to /customer/login. When posting, I receive an error 500, but nothing else, nothing gets posted to the laravel.log, or the nginx log file.

What am I doing wrong? Any help would be appreciated. I can't imagine that this is really so hard to implement.

ryanthompson  —  7 years ago

Hmm... I can't see anything wrong with it but check your NGINX / Apache logs and PHP error logs too. If it's not running through the exception handler for Laravel then it's likely failing sometime before that.