* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
useIlluminate\Database\Seeder;
usePterodactyl\Models;
classTerrariaServiceTableSeederextendsSeeder
{
/**
* The core service ID.
*
* @var Models\Service
*/
protected$service;
/**
* Stores all of the option objects
*
* @var array
*/
protected$option=[];
/**
* Run the database seeds.
*
* @return void
*/
publicfunctionrun()
{
$this->addCoreService();
$this->addCoreOptions();
$this->addVariables();
}
privatefunctionaddCoreService()
{
$this->service=Models\Service::create([
'author'=>'ptrdctyl-v040-11e6-8b77-86f30ca893d3',
'name'=>'Terraria',
'description'=>'Terraria is a land of adventure! A land of mystery! A land that\'s yours to shape, defend, and enjoy. Your options in Terraria are limitless. Are you an action gamer with an itchy trigger finger? A master builder? A collector? An explorer? There\'s something for everyone.',
'description'=>'TShock is a server modification for Terraria, written in C#, and based upon the Terraria Server API. It uses JSON for configuration management, and offers several features not present in the Terraria Server normally.',