fipamo/app/Services/SettingsService.php
ro a748b2c098
Added Auth and Settings service class
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
2024-03-01 13:34:36 -06:00

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;
}
}