Skip to content

Commit

Permalink
UPDATE VERSION 5.5.3 FIX MIGRATION CREATE
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzz123 committed Sep 18, 2024
1 parent af1ba1f commit 21ab220
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/providers/MiddlewaresProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function register(): void
];

foreach ($middlewares as $key => $value) {
self::$container->bind($key, $value);
self::$container->bind("make:$key", $value);
}
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lumenity/framework",
"version": "5.4.3",
"version": "5.5.3",
"description": "This is a simple PHP framework for building web applications.",
"keywords": [
"framework",
Expand Down
16 changes: 8 additions & 8 deletions config/common/app/route.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ public static function get(string $path, callable|string $handler, ?string $meth
*
* @param string $path The URL path pattern for the route
* @param callable|string $handler The name of the controller class handling the route
* @param string $method
* @param string|null $method
* @param array $middleware An array of middleware classes to be executed before handling the route
* @return void
*/
public static function post(string $path, callable|string $handler, string $method, array $middleware = []): void
public static function post(string $path, callable|string $handler, ?string $method, array $middleware = []): void
{
$route = self::getInstance();

Expand All @@ -131,11 +131,11 @@ public static function post(string $path, callable|string $handler, string $meth
*
* @param string $path The URL path pattern for the route
* @param callable|string $handler The name of the controller class handling the route
* @param string $method
* @param string|null $method
* @param array $middleware An array of middleware classes to be executed before handling the route
* @return void
*/
public static function put(string $path, callable|string $handler, string $method, array $middleware = []): void
public static function put(string $path, callable|string $handler, ?string $method, array $middleware = []): void
{
$route = self::getInstance();

Expand All @@ -155,11 +155,11 @@ public static function put(string $path, callable|string $handler, string $metho
*
* @param string $path The URL path pattern for the route
* @param callable|string $handler The name of the controller class handling the route
* @param string $method
* @param string|null $method
* @param array $middleware An array of middleware classes to be executed before handling the route
* @return void
*/
public static function delete(string $path, callable|string $handler, string $method, array $middleware = []): void
public static function delete(string $path, callable|string $handler, ?string $method, array $middleware = []): void
{
$route = self::getInstance();

Expand All @@ -179,11 +179,11 @@ public static function delete(string $path, callable|string $handler, string $me
*
* @param string $path The URL path pattern for the route
* @param callable|string $handler The name of the controller class handling the route
* @param string $method
* @param string|null $method
* @param array $middleware An array of middleware classes to be executed before handling the route
* @return void
*/
public static function patch(string $path, callable|string $handler, string $method, array $middleware = []): void
public static function patch(string $path, callable|string $handler, ?string $method, array $middleware = []): void
{
$route = self::getInstance();

Expand Down
6 changes: 3 additions & 3 deletions config/common/app/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ public static function render(string $view, array $data = []): void
*/
$blade = self::getInstance()->blade;

// Render the view template and output the result
// Enable including the scope in the view templates
$blade->getCsrfToken(); // it's a way to generate the csrf token (if it's not generated yet)
// it's a way to generate the csrf token (if it's not generated yet)
$token = $blade->getCsrfToken(true);
$_SESSION['_token'] = $token;

// Enable including the scope in the view templates
$blade->includeScope = true;
Expand Down
4 changes: 2 additions & 2 deletions config/common/app/whoops.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ public static function capture(): void
$handler->addCustomCss('/root/whoops.custom.css');
// Add custom data table for framework information
$handler->addDataTable('Lumenity Framework', [
'Version' => '5.4.3'
'Version' => '5.5.3'
]);
});

// Push the configured handler to the Whoops stack
if ($_ENV['APP_DEBUG'] === 'true') {
$whoops->pushHandler($handler);
} else {
$whoops->pushHandler(function ($exception, $inspector, $run) {
$whoops->pushHandler(function ($exception) {
logger($exception->getMessage(), 'debug');
view('error', [
'title' => '500 | ERROR 500',
Expand Down
2 changes: 1 addition & 1 deletion resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ functionality. Lumenity packages are built by the community and shared on GitHub
</main>

<footer class="py-16 text-center text-xs lg:text-sm text-black dark:text-white/70">
Lumenity v5.4.3 (PHP v{{ PHP_VERSION }})
Lumenity v5.5.3 (PHP v{{ PHP_VERSION }})
</footer>
</div>
</div>
Expand Down

0 comments on commit 21ab220

Please sign in to comment.