@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | try { |
| 21 | 21 | if (!Schema::hasTable('ccavanue')) { |
| 22 | - Schema::create('ccavanue', function ($table) { |
|
| 22 | + Schema::create('ccavanue', function($table) { |
|
| 23 | 23 | $table->increments('id'); |
| 24 | 24 | $table->string('merchant_id'); |
| 25 | 25 | $table->string('access_code'); |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | { |
| 33 | 33 | return \Datatable::collection($this->service->get()) |
| 34 | 34 | ->showColumns('name') |
| 35 | - ->addColumn('action', function ($model) { |
|
| 35 | + ->addColumn('action', function($model) { |
|
| 36 | 36 | return '<a href='.url('services/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>"; |
| 37 | 37 | }) |
| 38 | 38 | ->searchColumns('name') |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | { |
| 38 | 38 | return \Datatable::collection($this->licence->get()) |
| 39 | 39 | ->showColumns('name', 'description', 'number_of_sla', 'price') |
| 40 | - ->addColumn('action', function ($model) { |
|
| 40 | + ->addColumn('action', function($model) { |
|
| 41 | 41 | return '<a href='.url('licences/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>"; |
| 42 | 42 | }) |
| 43 | 43 | ->searchColumns('description') |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | try { |
| 21 | 21 | if (!Schema::hasTable('paypal')) { |
| 22 | - Schema::create('paypal', function ($table) { |
|
| 22 | + Schema::create('paypal', function($table) { |
|
| 23 | 23 | $table->increments('id'); |
| 24 | 24 | $table->string('business'); |
| 25 | 25 | $table->string('cmd'); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | //dd($this->invoice->get()); |
| 48 | 48 | return \Datatable::collection($this->subscription->get()) |
| 49 | 49 | |
| 50 | - ->addColumn('user_id', function ($model) { |
|
| 50 | + ->addColumn('user_id', function($model) { |
|
| 51 | 51 | $user = $model->user()->first(); |
| 52 | 52 | $first = $user->first_name; |
| 53 | 53 | $last = $user->last_name; |
@@ -55,18 +55,18 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | return '<a href='.url('clients/'.$id).'>'.ucfirst($first).' '.ucfirst($last).'</a>'; |
| 57 | 57 | }) |
| 58 | - ->addColumn('plan_id', function ($model) { |
|
| 58 | + ->addColumn('plan_id', function($model) { |
|
| 59 | 59 | $name = $this->plan->where('id', $model->plan_id)->first()->name; |
| 60 | 60 | |
| 61 | 61 | return $name; |
| 62 | 62 | }) |
| 63 | - ->addColumn('order_id', function ($model) { |
|
| 63 | + ->addColumn('order_id', function($model) { |
|
| 64 | 64 | $name = $this->order->where('id', $model->order_id)->first()->id; |
| 65 | 65 | |
| 66 | 66 | return $name; |
| 67 | 67 | }) |
| 68 | 68 | ->showColumns('ends_at') |
| 69 | - ->addColumn('action', function ($model) { |
|
| 69 | + ->addColumn('action', function($model) { |
|
| 70 | 70 | return '<a href='.url('subscriptions/'.$model->id)." class='btn btn-sm btn-primary'>View</a>"; |
| 71 | 71 | }) |
| 72 | 72 | ->searchColumns('ends_at') |
@@ -126,10 +126,10 @@ |
||
| 126 | 126 | $url = ''; |
| 127 | 127 | $crypto = new Crypto(); |
| 128 | 128 | $ccavanue = $this->ccavanue->findOrFail(1); |
| 129 | - $workingKey = $ccavanue->working_key; //Working Key should be provided here. |
|
| 130 | - $encResponse = $request->get('encResp'); //This is the response sent by the CCAvenue Server |
|
| 129 | + $workingKey = $ccavanue->working_key; //Working Key should be provided here. |
|
| 130 | + $encResponse = $request->get('encResp'); //This is the response sent by the CCAvenue Server |
|
| 131 | 131 | |
| 132 | - $rcvdString = $crypto->decrypt($encResponse, $workingKey); //Crypto Decryption used as per the specified working key. |
|
| 132 | + $rcvdString = $crypto->decrypt($encResponse, $workingKey); //Crypto Decryption used as per the specified working key. |
|
| 133 | 133 | $order_status = ''; |
| 134 | 134 | $decryptValues = explode('&', $rcvdString); |
| 135 | 135 | $dataSize = count($decryptValues); |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | */ |
| 51 | 51 | public function startsWith($letter) |
| 52 | 52 | { |
| 53 | - return array_filter($this->items, function ($item) use ($letter) { |
|
| 53 | + return array_filter($this->items, function($item) use ($letter) { |
|
| 54 | 54 | return stripos($item, $letter) === 0; |
| 55 | 55 | }); |
| 56 | 56 | } |
@@ -17,8 +17,8 @@ discard block |
||
| 17 | 17 | \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class, |
| 18 | 18 | \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, |
| 19 | 19 | // \App\Http\Middleware\TrimStrings::class, |
| 20 | - \Illuminate\Session\Middleware\StartSession::class, |
|
| 21 | - \Illuminate\View\Middleware\ShareErrorsFromSession::class, |
|
| 20 | + \Illuminate\Session\Middleware\StartSession::class, |
|
| 21 | + \Illuminate\View\Middleware\ShareErrorsFromSession::class, |
|
| 22 | 22 | // \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, |
| 23 | 23 | ]; |
| 24 | 24 | |
@@ -29,21 +29,21 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | protected $middlewareGroups = [ |
| 31 | 31 | 'web' => [ |
| 32 | - \App\Http\Middleware\Install::class, |
|
| 32 | + \App\Http\Middleware\Install::class, |
|
| 33 | 33 | \App\Http\Middleware\EncryptCookies::class, |
| 34 | 34 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, |
| 35 | 35 | // \Illuminate\Session\Middleware\StartSession::class, |
| 36 | 36 | // \Illuminate\Session\Middleware\AuthenticateSession::class, |
| 37 | 37 | // \Illuminate\View\Middleware\ShareErrorsFromSession::class, |
| 38 | - // \App\Http\Middleware\VerifyCsrfToken::class, |
|
| 38 | + // \App\Http\Middleware\VerifyCsrfToken::class, |
|
| 39 | 39 | \Illuminate\Routing\Middleware\SubstituteBindings::class, |
| 40 | 40 | |
| 41 | - // \App\Http\Middleware\IsInstalled::class, |
|
| 41 | + // \App\Http\Middleware\IsInstalled::class, |
|
| 42 | 42 | |
| 43 | 43 | ], |
| 44 | - 'admin' => [\App\Http\Middleware\Admin::class], |
|
| 45 | - 'guest' => [\App\Http\Middleware\RedirectIfAuthenticated::class], |
|
| 46 | - 'auth' => [\Illuminate\Auth\Middleware\Authenticate::class], |
|
| 44 | + 'admin' => [\App\Http\Middleware\Admin::class], |
|
| 45 | + 'guest' => [\App\Http\Middleware\RedirectIfAuthenticated::class], |
|
| 46 | + 'auth' => [\Illuminate\Auth\Middleware\Authenticate::class], |
|
| 47 | 47 | 'auth.basic' => [\Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class], |
| 48 | 48 | |
| 49 | 49 | 'api' => [ |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | //Route::group(['middleware' => ['web']], function () { |
| 14 | - Route::get('/', 'HomeController@index'); |
|
| 14 | + Route::get('/', 'HomeController@index'); |
|
| 15 | 15 | |
| 16 | 16 | /* |
| 17 | 17 | * Front end |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | * Api |
| 360 | 360 | */ |
| 361 | 361 | Route::/* @scrutinizer ignore-call */ |
| 362 | -group(['prefix' => 'api'], function () { |
|
| 362 | +group(['prefix' => 'api'], function() { |
|
| 363 | 363 | /* |
| 364 | 364 | * Unautherised requests |
| 365 | 365 | */ |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | Route::get('otp/verify', 'Auth\AuthController@postOtp'); |
| 372 | 372 | Route::get('email/verify', 'Auth\AuthController@verifyEmail'); |
| 373 | 373 | Route::get('resend_otp', 'Auth\AuthController@retryOTP'); |
| 374 | -Route::get('verify', function () { |
|
| 374 | +Route::get('verify', function() { |
|
| 375 | 375 | $user = \Session::get('user'); |
| 376 | 376 | if ($user) { |
| 377 | 377 | return view('themes.default1.user.verify', compact('user')); |