Lumen directing all routes of specific group to *

121 Views Asked by At

I'm developing a website with simple landing page and a few other page such as contacts and news as front end (which uses normal PHP and lumen should be sufficient bythe way) and vuejs as backend. Trying to send all get request from '/admin/' to view('admin'). This is the best I could come up with...

$router->group(['prefix' => 'admin'], function () use ($router) {

   $router ->get('/{route:.*}/', function () use ($router) { return view('admin'); 

});

The problem is all url I do or access, all get request response I get was 404 - not found. Not even any log or anything in lumen log or even in error log apache server. Where did I do wrong?

//using lumen since I need API for vuejs operations.

0

There are 0 best solutions below