Purifier
Purifier copied to clipboard
Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Class 'App\Http\Controllers\Purifier' not found
After installing the packager with composer, i'm still getting the error Class 'App\Http\Controllers\Purifier' not found. pls assist
You are probably doing something like:
Purifier::clean(Input::get('inputname'));
You either need to add the correct use statement:
use Purifier;
or change the code to:
\Purifier::clean(\Input::get('inputname'));
Or even to:
clean(\Input::get('inputname'));
The Purifier class (facade) lives in the root namespace.
Thanks @stayallive . it's working now