public function clearCache()
    {
        $exitCode = Artisan::call('cache:clear');
        $exitCode = Artisan::call('route:clear');
        $exitCode = Artisan::call('optimize');
        if ($exitCode === 0) {
            Session::put('_cache-clear', trans('canvas::messages.cache_clear_success'));
        } else {
            Session::put('_cache-clear', trans('canvas::messages.cache_clear_error'));
        }

        return redirect()->route('canvas.admin.tools');
    }
public function clearCache()
    {
        $exitCode = Artisan::call('cache:clear');
        $exitCode = Artisan::call('route:clear');
        $exitCode = Artisan::call('optimize');
        if ($exitCode === 0) {
            Session::put('_cache-clear', trans('canvas::messages.cache_clear_success'));
        } else {
            Session::put('_cache-clear', trans('canvas::messages.cache_clear_error'));
        }

        return redirect()->route('canvas.admin.tools');
    }
public function clearCache ( ) { $ exitCode = Artisan :: call ( 'cache:clear' ) ; $ exitCode = Artisan :: call ( 'route:clear' ) ; $ exitCode = Artisan :: call ( 'optimize' ) ; if ( $ exitCode === 0 ) { Session :: put ( '_cache-clear' , trans ( 'canvas::messages.cache_clear_success' ) ) ; } else { Session :: put ( '_cache-clear' , trans ( 'canvas::messages.cache_clear_error' ) ) ; } return redirect ( ) -> route ( 'canvas.admin.tools' ) ; }
Manually Flush the Application Cache.

@return \Illuminate\View\View
Manually Flush the Application Cache .