I have followed the tutorial here on building a validation service for laravel. I am having issues now when trying to call the validator from one of my controllers. I am seeing
Your 'use' statement should be above the class definition of validController
Try putting the use
before the class
declaration:
<?php // namespace Portal\Controllers;
use \Portal\Service\Validation\Laravel\AppInstancesValidator;
class validController extends BaseController {
public function validateInstance() {}
}