This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//As would be defined in bootstrap.php | |
defined('HOST_NAME') OR define('HOST_NAME', $SERVER['SERVER_NAME']); | |
if (!function_exists('asset')) { | |
/** | |
* Generate an asset path | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use App\Verifiers\RedisPresenceVerifier; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Verifiers; | |
use Illuminate\Contracts\Redis\Factory; | |
use Illuminate\Validation\PresenceVerifierInterface; | |
class RedisPresenceVerifier implements PresenceVerifierInterface | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use App\Components\Sms\SmsManager; | |
use Illuminate\Support\ServiceProvider; | |
class SmsServiceProvider extends ServiceProvider | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Components\Sms; | |
use Illuminate\Support\Manager; | |
use Nexmo\Client as NexmoClient; | |
use Twilio\Rest\Client as TwilioClient; | |
use App\Components\Sms\Drivers\NullDriver; | |
use App\Components\Sms\Drivers\NexmoDriver; | |
use App\Components\Sms\Drivers\TwilioDriver; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| The default SMS Driver | |
|-------------------------------------------------------------------------- | |
| | |
| The default sms driver to use as a fallback when no driver is specified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Components\Sms\Drivers; | |
use Nexmo\Client as NexmoClient; | |
class NexmoDriver extends Driver | |
{ | |
/** | |
* The Nexmo client. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Unit; | |
use SMS; | |
use Tests\TestCase; | |
use App\Components\Sms\Drivers\NexmoDriver; | |
use App\Components\Sms\Drivers\TwilioDriver; | |
use App\Components\Sms\Drivers\NullDriver; | |
use App\Components\Sms\Contracts\SMS as SmsContract; |
OlderNewer