File "ToggleViewRequest.php"
Full Path: /home/warrior1/public_html/wp-content/plugins/file-manager/backend/app/Http/Requests/Settings/ToggleViewRequest.php
File size: 445 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace BitApps\FM\Http\Requests\Settings;
use BitApps\WPKit\Http\Request\Request;
use BitApps\WPKit\Utils\Capabilities;
class ToggleViewRequest extends Request
{
public function authorize()
{
return Capabilities::filter('bitapps_fm_can_change_settings', 'install_plugins');
}
public function rules()
{
return [
'viewType' => ['sanitize:text', 'required','string'],
];
}
}