app/Http/Requests/StoreSectionRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'judul' => 'required',
            'deskripsi' => ''
        ];
    }
public function rules ( ) { return [ 'judul' => 'required' , 'deskripsi' => '' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .