Fix/Rename Ezypay methods

This commit is contained in:
Deon George 2020-02-01 22:12:31 +11:00
parent baf9bc25e8
commit 01a7d73c17
5 changed files with 14 additions and 15 deletions

View File

@ -1,6 +1,6 @@
<?php
namespace App\Classes;
namespace App\Classes\External;
use GuzzleHttp\Client;
use Illuminate\Support\Collection;

View File

@ -1,13 +1,13 @@
<?php
namespace App\Classes\Payments;
namespace App\Classes\External\Payments;
use Illuminate\Support\Arr;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Log;
use App\Classes\Payments;
use App\Classes\External\Payments;
class Ezypay extends Payments
{

View File

@ -5,17 +5,17 @@ namespace App\Console\Commands;
use Carbon\Carbon;
use Illuminate\Console\Command;
use App\Classes\Payments\Ezypay;
use App\Classes\External\Payments\Ezypay;
use App\Models\{Account,Checkout,Payment};
class EzypayImport extends Command
class PaymentsEzypayImport extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'payments:ezypay';
protected $signature = 'payments:ezypay:import';
/**
* The console command description.

View File

@ -4,17 +4,17 @@ namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Classes\Payments\Ezypay;
use App\Classes\External\Payments\Ezypay;
use App\Models\Account;
class EzypayPayments extends Command
class PaymentsEzypayNext extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'next:ezypay';
protected $signature = 'payments:ezypay:next';
/**
* The console command description.

View File

@ -2,19 +2,18 @@
namespace App\Http\Controllers\Auth;
use App\Models\AccountOauth;
use Illuminate\Http\Request;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Mail;
use Socialite;
use Laravel\Socialite\Facades\Socialite;
use App\Providers\RouteServiceProvider;
use App\Http\Controllers\Controller;
use App\Mail\SocialLink;
use App\Models\Oauth;
use App\Models\AccountOauth;
use App\User;
use function App\Console\Commands\object_to_array;
class SocialLoginController extends Controller
{
@ -80,7 +79,7 @@ class SocialLoginController extends Controller
}
}
return redirect()->intended();
return redirect()->intended(RouteServiceProvider::HOME);
}
/**
@ -119,6 +118,6 @@ class SocialLoginController extends Controller
$aoo->save();
Auth::login($uo,FALSE);
return redirect()->intended();
return redirect()->intended(RouteServiceProvider::HOME);
}
}