Improve to use HTML5 attributes for laravel 5 #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
.gitkeep
files.gitignore
file to allow usingphpStorm
to develop this packageClosure
route instead of theRuleController
class to makeRoute
become extendable withextend()
methodServiceProvider::mergeConfigFrom
method to load package configuration instead of loading config file manuallyJS
fileApp
facade instances (e.g.$app['url']
,$app['translator']
,$app['encrypter']
,...) to converter classesto remove
Helper
class, and we can customize message-method with our custom plugin[]
likefoo[][bar]
Validator
URL::to
to correct routing pathConverter
to use custom pluginnumeric
andfile
typesbetween
,mimes
,unique
,...Route::convert()
method to makeRoute
extendable viaextend()
alphanum
should be named asalpha_num
data-msg-accept
for validation ruleimage
integer
withdata-rule-integer
instead ofdata-rule-number
same
should bedata-rule-equalto=":input[name='other']"
instead of"input[name='other']"
alpha
andalpha_num
rules should not allow whitespace to make them compatible with laravelValidator
vsprintf()
from%1s,%2s
to%1$s,%2$s
Converter
pluginrequired
,pattern
,maxlength
,min
<input type="url"
,<input type="email"
,... instead of attributedata-rule-*="true"
data-msg-*
when validation rule existsremote
rules such as:unique
+active_url
The field must be between {0} and {1}.
,The field must be a date after {0}.
,...So, we can change
data-rule-*
value at the client-side via JavaScriptFormBuilder::checkable()
because it call toFormBuilder::input()
methodother
,values
parameters, those are used bysame
,required_with
rulesServiceProvider
one)