From 039c446815732f0b99b1f9a413e87ff30425da49 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 8 Aug 2017 07:22:17 +0300 Subject: [PATCH] 3.6.0 via upgrade from 3.2.0 --- app/Http/Controllers/ExpenseController.php | 2 +- app/Http/routes.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/ExpenseController.php b/app/Http/Controllers/ExpenseController.php index 1940a26f3d..a78b8f82bd 100644 --- a/app/Http/Controllers/ExpenseController.php +++ b/app/Http/Controllers/ExpenseController.php @@ -94,7 +94,7 @@ class ExpenseController extends BaseController return View::make('expenses.edit', $data); } - public function clone(ExpenseRequest $request, $publicId) + public function cloneExpense(ExpenseRequest $request, $publicId) { return self::edit($request, $publicId, true); } diff --git a/app/Http/routes.php b/app/Http/routes.php index 98f1b869c1..3c48fdaf83 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -224,7 +224,7 @@ Route::group(['middleware' => ['lookup:user', 'auth:user']], function () { // Expense Route::resource('expenses', 'ExpenseController'); Route::get('expenses/create/{vendor_id?}/{client_id?}/{category_id?}', 'ExpenseController@create'); - Route::get('expenses/{expenses}/clone', 'ExpenseController@clone'); + Route::get('expenses/{expenses}/clone', 'ExpenseController@cloneExpense'); Route::get('api/expenses', 'ExpenseController@getDatatable'); Route::get('api/expenses/{id}', 'ExpenseController@getDatatableVendor'); Route::post('expenses/bulk', 'ExpenseController@bulk');