Instead of Illuminate\Http\Request
, use Cake\Http\ServerRequest
Find Request $request
and replace with ServerRequest $request
Instead of Illuminate\Http\Request
, use Cake\Http\ServerRequest
Find Request $request
and replace with ServerRequest $request
Laravel => routes/web.php CakePHP => config/routes.php
Below examples are for GET routes only, yet
Route::get
with $builder->connect
'usersController@indexMethod'
format of Laravel to
['controller' => 'users', 'action' => 'indexMethod']
format of CakePHPFind : (', ')([a-zA-Z]+)(Controller)(@)([a-zA-Z]+)(')
Replace : ', ['controller' => '$2', 'action' => '$5']
Note : I will continue to add more info in comments (much faster, for now - something like a "writer's debt" - taken, for now, to document stuff faster, not sure when will I repay this).
$request->all()
becomes$request->getAttributes()