From 717d2141573ea4e8caa6b0da4dbff27d975b7803 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 8 Apr 2015 21:19:58 +0300 Subject: [PATCH] Working on L5 --- app/Http/Controllers/ClientApiController.php | 4 ++++ app/Http/Controllers/InvoiceApiController.php | 7 +++++++ app/Http/Controllers/PaymentApiController.php | 2 ++ app/Http/Controllers/QuoteApiController.php | 2 ++ app/Http/Middleware/ApiCheck.php | 4 +++- app/Http/Middleware/VerifyCsrfToken.php | 15 +++++++++++++++ app/Models/User.php | 4 ---- bootstrap/autoload.php | 2 +- resources/views/list.blade.php | 4 ++-- 9 files changed, 36 insertions(+), 8 deletions(-) diff --git a/app/Http/Controllers/ClientApiController.php b/app/Http/Controllers/ClientApiController.php index 8bbc976987d0..d62056406bb9 100644 --- a/app/Http/Controllers/ClientApiController.php +++ b/app/Http/Controllers/ClientApiController.php @@ -1,5 +1,9 @@ openRoutes as $route) { + + if ($request->is($route)) { + return $next($request); + } + } + return parent::handle($request, $next); } diff --git a/app/Models/User.php b/app/Models/User.php index c6f3b03bd27d..593d19e1486e 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -176,8 +176,4 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon return 'remember_token'; } - // public function confirm(){} - // public function forgotPassword(){} - // public function isValid(){} - } diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php index f2a9d5675d5c..bc04666cb912 100644 --- a/bootstrap/autoload.php +++ b/bootstrap/autoload.php @@ -27,7 +27,7 @@ require __DIR__.'/../vendor/autoload.php'; | */ -$compiledPath = __DIR__.'/../storage/framework/compiled.php'; +$compiledPath = __DIR__.'/../vendor/compiled.php'; if (file_exists($compiledPath)) { diff --git a/resources/views/list.blade.php b/resources/views/list.blade.php index da1bfaa0c8bf..823d606b5665 100644 --- a/resources/views/list.blade.php +++ b/resources/views/list.blade.php @@ -121,7 +121,7 @@ setArchiveEnabled(); }); - $('tbody tr').click(function(event) { + $('tbody tr').click(function(event) { if (event.target.type !== 'checkbox' && event.target.type !== 'button' && event.target.tagName.toLowerCase() !== 'a') { $checkbox = $(this).closest('tr').find(':checkbox:not(:disabled)'); var checked = $checkbox.prop('checked'); @@ -152,7 +152,7 @@ function setArchiveEnabled() { var checked = $('tbody :checkbox:checked').length > 0; - $('#archive > button').prop('disabled', !checked); + $('button.archive').prop('disabled', !checked); }