For following route:
Route::post('/user/{user}/project/{project}/git-add', 'GitController@stageFiles');
You need to create stageFiles
method in GitController
and from your stageFiles
method:
public function stageFiles($user, $project)
{
// $user && $project both are available in this method as parameters
}