Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit c3cd371

Browse files
committed
Explaning about complete path for laravalid.action
1 parent 76997f0 commit c3cd371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ After publishing configuration file, you can find it in config/laravalid folder.
7171
| plugin | Choose plugin you want to use | See [Plugins and Supported Rules](#plugins-and-supported-rules) |
7272
| useLaravelMessages | If it is true, laravel validation messages are used in client side otherwise messages of chosen plugin are used | `boolean`. See [Validation Messages](#validation-messages) |
7373
| route | Route name for remote validation | Any route name (default: laravalid). The route will receive an argument named `rule` |
74-
| action | A custom action to run the remote validation procedure | An action string, such as `SiteController@getValidation`. You must create that action if you plan to run remote validations. This is needed if you want to cache routes (`./artisan route:cache`)
74+
| action | A custom action to run the remote validation procedure | An action string, such as `\\App\\Http\\Controllers\\SiteController@getValidation` (unfortunately you need to use the complete namespace here). You must create that action if you plan to run remote validations. This is needed if you want to cache routes (`./artisan route:cache`)
7575

7676
#### Validation Messages
7777
If you set `useLaravelMessages` to `true`, you're able to use (Laravel's Localization package)[l10n] to generate validation messages. To do so, follow the [docs][l10n] to get the package configured (by setting your default/fallback/current locales). Then, create a folder for each locale (as the docs says) and create a `validation.php` file for each one. Inside those files you'll set a message for each rule name, as follows:

0 commit comments

Comments
 (0)