blue-twilight/app/ExternalService.php

23 lines
527 B
PHP
Raw Normal View History

<?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();
}
}