diff --git a/src/Illuminate/Foundation/helpers.php b/src/Illuminate/Foundation/helpers.php index 86836cf494bd..268411285701 100644 --- a/src/Illuminate/Foundation/helpers.php +++ b/src/Illuminate/Foundation/helpers.php @@ -84,6 +84,19 @@ function asset($path, $secure = null) } } +if ( ! function_exists('auth')) +{ + /** + * Get the Auth object of the system. + * + * @return \Illuminate\Auth\AuthManager + */ + function auth() + { + return app('auth'); + } +} + if ( ! function_exists('base_path')) { /**