E-dreamz_TP

This got me close, but still did not work. Here is my edit to get the image upload function to work with redactor wysiwyg.

//add an array of Routes to skip CSRF check
    private $openRoutes = ['redactorUpload'];
    public function handle($request, Closure $next)
    {
        if(in_array($request->path(), $this->openRoutes)){
            return $next($request);
        }else{
            return parent::handle($request, $next);
        }
    }

You can then add any route exceptions to the array that you need to skip the CSRF check.

Return to Thread...