Laravel Routing and PHP Dev Server -
i'm having laravel route can take infinite number of paths.
route::get('test/{path?}', calback)->where('path', '.*');
everything works ok when use php artisan serve
.
but when cd public
, start php dev server php -s localhost:8002
i'm having issue paths request file.
route works still:
/test/something/here
but not this:
/test/something/here.dd
it seems php dev server right away looks static file in public
when there dot in uri , laravel routes not parsed.
i haven't tested assume apache, ngix, iis, lighttpd , others behave same.
is there i'm missing here or kind of laravel workaround not require editing servers config files?
want in laravel routes first in cases.
for reasons not right editing server config files not option.
Comments
Post a Comment