File: D:/HostingSpaces/SBogers10/sdo-schoonmaak.komma.pro/app/KommaApp/Sites/SiteService.php
<?php
namespace App\KommaApp\Sites;
use App\KommaApp\Sites\Models\Site;
use Illuminate\Database\Eloquent\Collection;
class SiteService
{
/**
* This method will get a specific site
*
* @param integer $id
* @return Site
*/
public function getSite($id = 1): int
{
return Site::find($id);
}
/**
* This method will get all the sites
*
* @return Collection|static[]
*/
public function getSites()
{
return Site::all();
}
}