ro
a748b2c098
Plugged in a basic auth classs for verifying members and a setting class to retrieve site settings and return necessary info. Very bare bones to start just to get it working and prep for the additional features
27 lines
494 B
PHP
27 lines
494 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
class SettingsService
|
|
{
|
|
protected $config;
|
|
protected $folks;
|
|
protected $tags;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->config = json_decode(file_get_contents(env('SETTINGS_PATH')), true);
|
|
$this->folks = json_decode(file_get_contents(env('FOLKS_PATH')), true);
|
|
}
|
|
|
|
public function getGlobal()
|
|
{
|
|
return $this->config['global'];
|
|
}
|
|
|
|
public function getFolks()
|
|
{
|
|
return $this->folks;
|
|
}
|
|
}
|