misc_pterodactyl-panel/app/Http/Requests/Admin/Egg/EggImportFormRequest.php

27 lines
646 B
PHP
Raw Normal View History

2017-10-04 04:31:04 +00:00
<?php
/**
* Pterodactyl - Panel
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
*
* This software is licensed under the terms of the MIT license.
* https://opensource.org/licenses/MIT
*/
2017-10-09 02:36:22 +00:00
namespace Pterodactyl\Http\Requests\Admin\Egg;
2017-10-04 04:31:04 +00:00
use Pterodactyl\Http\Requests\Admin\AdminFormRequest;
2017-10-09 02:36:22 +00:00
class EggImportFormRequest extends AdminFormRequest
2017-10-04 04:31:04 +00:00
{
/**
* @return array
*/
2017-10-04 04:36:39 +00:00
public function rules()
2017-10-04 04:31:04 +00:00
{
return [
'import_file' => 'bail|required|file|max:1000|mimetypes:application/json,text/plain',
2017-10-09 02:36:22 +00:00
'import_to_nest' => 'bail|required|integer|exists:nests,id',
2017-10-04 04:31:04 +00:00
];
}
}