use the ValidatorsLoader Class to load validators
This commit is contained in:
1 parent
bb47510faa
commit
845ced5d33
1 file changed
+3
-1
@@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
namespace Hekmatinasser\Verta;
|
namespace Hekmatinasser\Verta;
|
||||||
|
|
||||||
|
use Hekmatinasser\Verta\Verta;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
|
use Hekmatinasser\Verta\Validation\ValidatorLoader;
|
||||||
|
|
||||||
class VertaServiceProvider extends ServiceProvider
|
class VertaServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
@@ -14,7 +16,7 @@ class VertaServiceProvider extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
$this->validator();
|
ValidatorLoader::loadValidators();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user