Files
Woles-Framework/app/Core/Facades/Request.php
mwpn 0b42271bfe feat: Complete Woles Framework v1.0 with enterprise-grade UI
- Add comprehensive error handling system with custom error pages
- Implement professional enterprise-style design with Tailwind CSS
- Create modular HMVC architecture with clean separation of concerns
- Add security features: CSRF protection, XSS filtering, Argon2ID hashing
- Include CLI tools for development workflow
- Add error reporting dashboard with system monitoring
- Implement responsive design with consistent slate color scheme
- Replace all emoji icons with professional SVG icons
- Add comprehensive test suite with PHPUnit
- Include database migrations and seeders
- Add proper exception handling with fallback pages
- Implement template engine with custom syntax support
- Add helper functions and facades for clean code
- Include proper logging and debugging capabilities
2025-10-11 07:08:23 +07:00

67 lines
1.1 KiB
PHP

<?php
namespace App\Core\Facades;
/**
* NovaCore Request Facade
* Static access to request services
*/
class Request
{
/**
* Get request instance
*/
public static function instance(): \App\Core\Request
{
return app('request');
}
/**
* Get all input data
*/
public static function all(): array
{
return self::instance()->all();
}
/**
* Get input value by key
*/
public static function input(string $key, $default = null)
{
return self::instance()->input($key, $default);
}
/**
* Get request method
*/
public static function method(): string
{
return self::instance()->method();
}
/**
* Get request URI
*/
public static function uri(): string
{
return self::instance()->uri();
}
/**
* Check if request is AJAX
*/
public static function isAjax(): bool
{
return self::instance()->isAjax();
}
/**
* Check if request expects JSON
*/
public static function expectsJson(): bool
{
return self::instance()->expectsJson();
}
}