Fix/Rename Ezypay methods
This commit is contained in:
parent
baf9bc25e8
commit
01a7d73c17
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes;
|
||||
namespace App\Classes\External;
|
||||
|
||||
use GuzzleHttp\Client;
|
||||
use Illuminate\Support\Collection;
|
@ -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
|
||||
{
|
@ -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.
|
@ -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.
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user