1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-02-25 11:42:48 +01:00
LinkAce/app/Http/Requests/DoImportRequest.php

36 lines
600 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
/**
* Class DoImportRequest
*
* @package App\Http\Requests
*/
class DoImportRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'import-file' => 'required|file|mimes:html,htm',
];
}
}