Voyager: How to validate the data before input in database?

Created on 22 Dec 2016  路  3Comments  路  Source: the-control-group/voyager

  • Laravel Version: 5.3.28
  • Voyager Version: 0.10.5
  • PHP Version: 7.0.9
  • Database Driver & Version: Mysql & 7.0.9-

Description:

How to validate the input data before insert in database.

Steps To Reproduce:

When create the new database table and also add BREAD. How to validate the form when open for insert data into database.

question

Most helpful comment

In your BREAD under Optional Details for your field, enter the following using Laravel's validation rules.

{
    "validation": {
        "rule": "required|min:20"
    }
}

All 3 comments

In your BREAD under Optional Details for your field, enter the following using Laravel's validation rules.

{
    "validation": {
        "rule": "required|min:20"
    }
}

Thanks @marktopper

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TPRAsh picture TPRAsh  路  3Comments

Nagendra1421 picture Nagendra1421  路  3Comments

kevinjon27 picture kevinjon27  路  3Comments

duongsieu picture duongsieu  路  3Comments

TXRRNT picture TXRRNT  路  3Comments