Purifier icon indicating copy to clipboard operation
Purifier copied to clipboard

Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Class 'App\Http\Controllers\Purifier' not found

Open Eazybright opened this issue 7 years ago • 2 comments

After installing the packager with composer, i'm still getting the error Class 'App\Http\Controllers\Purifier' not found. pls assist

Eazybright avatar Sep 28 '18 04:09 Eazybright

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.

stayallive avatar Sep 28 '18 09:09 stayallive

Thanks @stayallive . it's working now

Eazybright avatar Sep 28 '18 15:09 Eazybright