- Complete GGZ Ecademy Laravel backend application - RESTful API for learning products, members, filters - Authentication and authorization system - Database migrations and seeders - Custom CRUD generator commands - Email notification system - Integration with frontend applications
This commit is contained in:
16
app/Data/Validation/Validator.php
Normal file
16
app/Data/Validation/Validator.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Data\Validation;
|
||||
|
||||
abstract class Validator
|
||||
{
|
||||
protected function error(string $message): ValidationResult
|
||||
{
|
||||
return new ValidationResult(true, $message);
|
||||
}
|
||||
|
||||
protected function success(): ValidationResult
|
||||
{
|
||||
return new ValidationResult(false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user