23 lines
527 B
PHP
23 lines
527 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ExternalService extends Model
|
|
{
|
|
public const DROPBOX = 'Dropbox';
|
|
public const FACEBOOK = 'Facebook';
|
|
public const GOOGLE = 'Google';
|
|
public const TWITTER = 'Twitter';
|
|
|
|
/**
|
|
* Gets the details for the given service type.
|
|
* @param $serviceType
|
|
* @return ExternalService
|
|
*/
|
|
public static function getForService($serviceType)
|
|
{
|
|
return ExternalService::where('service_type', $serviceType)->first();
|
|
}
|
|
} |