ldc-web/app/Http/Requests/Projects/StoreProjects.php

34 lines
687 B
PHP
Raw Normal View History

<?php
namespace App\Http\Requests\Projects;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Auth;
class StoreProjects extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return Auth::checK();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
// TODO : compléter les rules
'prod_smtp_config' => 'integer|required',
'prod_smtp_key' => 'required_if:prod_smtp_config,3'
];
}
}