PteroTheme/app/Services/Locations/LocationCreationService.php

21 lines
353 B
PHP
Raw Normal View History

<?php
namespace Pterodactyl\Services\Locations;
use Pterodactyl\Models\Location;
class LocationCreationService
{
/**
* Create a new location.
*
*/
public function handle(array $data): Location
{
2022-10-23 09:25:49 +01:00
/** @var Location $location */
$location = Location::query()->create($data);
return $location;
}
}