Voyager: Database - Field Validation

Created on 11 Jan 2017  路  6Comments  路  Source: the-control-group/voyager

https://owncloud.canopus.ga/index.php/s/lIHAgNrzVlTKviE

  • Laravel Version: 5.3.29
  • Voyager Version: 0.10.8
  • PHP Version: 7.0.14
  • Database Driver & Version:

Description:

can't delete when name with '/'
https://owncloud.canopus.ga/index.php/s/lIHAgNrzVlTKviE

Steps To Reproduce:

https://owncloud.canopus.ga/index.php/s/lIHAgNrzVlTKviE

bug help wanted

All 6 comments

Either the table name should be rawurlencode() or alpha_dash rule must be added to that field's validation.

We are open for pull requests

To be honest, I spent like 2 hours trying to implement rawurlencode() without success. So I guess I'll help with the validation :smile: it sounds like the way to go, a table shouldn't be named /yo/bitch/

I agree.

@pogorelchuk: Did you create your table using Voyager or did you build it directly from Laravel or in your database manager tool?

Closed due to missing response.

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

popica80 picture popica80  路  3Comments

zzpwestlife picture zzpwestlife  路  3Comments

wp-src picture wp-src  路  3Comments

raoasifraza1 picture raoasifraza1  路  3Comments

kevinjon27 picture kevinjon27  路  3Comments