diff --git a/LICENSE.md b/LICENSE.md index 755590c..c73c44b 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) flavorly +Copyright (c) Flavorly Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c9ccc37..afe0e8b 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,8 @@ return [ 'prefix_key' => 'inertia_container_', 'driver' => 'session', - 'session-driver' => \flavorly\InertiaFlash\Drivers\SessionDriver::class, - 'cache-driver' => \flavorly\InertiaFlash\Drivers\CacheDriver::class, + 'session-driver' => \Flavorly\InertiaFlash\Drivers\SessionDriver::class, + 'cache-driver' => \Flavorly\InertiaFlash\Drivers\CacheDriver::class, 'cache-ttl' => 60, @@ -89,10 +89,10 @@ Keep in the mind that the values will only be kept on the current or next reques You may also use closures that under-the-hood will be converted to Laravel Closure Serializer ( Previously Opis ) ```php -use \flavorly\InertiaFlash\InertiaFlash; +use Flavorly\InertiaFlash\InertiaFlash; // Resolve from container -$flash = app(\flavorly\InertiaFlash\InertiaFlash::class); +$flash = app(\Flavorly\InertiaFlash\InertiaFlash::class); $flash->share('foo', 'bar'); // Or using the helper diff --git a/composer.json b/composer.json index 4cf728d..5f20e99 100644 --- a/composer.json +++ b/composer.json @@ -36,8 +36,8 @@ }, "autoload": { "psr-4": { - "flavorly\\InertiaFlash\\": "src", - "flavorly\\InertiaFlash\\Database\\Factories\\": "database/factories" + "Flavorly\\InertiaFlash\\": "src", + "Flavorly\\InertiaFlash\\Database\\Factories\\": "database/factories" }, "files": [ "src/Helpers/helpers.php" @@ -45,7 +45,7 @@ }, "autoload-dev": { "psr-4": { - "flavorly\\InertiaFlash\\Tests\\": "tests" + "Flavorly\\InertiaFlash\\Tests\\": "tests" } }, "scripts": { @@ -63,10 +63,10 @@ "extra": { "laravel": { "providers": [ - "flavorly\\InertiaFlash\\InertiaFlashServiceProvider" + "Flavorly\\InertiaFlash\\InertiaFlashServiceProvider" ], "aliases": { - "InertiaFlash": "flavorly\\InertiaFlash\\Facades\\InertiaFlash" + "InertiaFlash": "Flavorly\\InertiaFlash\\Facades\\InertiaFlash" } } }, diff --git a/config/inertia-flash.php b/config/inertia-flash.php index 72da0e4..701c826 100644 --- a/config/inertia-flash.php +++ b/config/inertia-flash.php @@ -18,8 +18,8 @@ 'prefix_key' => 'inertia_container_', 'driver' => 'session', - 'session-driver' => \flavorly\InertiaFlash\Drivers\SessionDriver::class, - 'cache-driver' => \flavorly\InertiaFlash\Drivers\CacheDriver::class, + 'session-driver' => \Flavorly\InertiaFlash\Drivers\SessionDriver::class, + 'cache-driver' => \Flavorly\InertiaFlash\Drivers\CacheDriver::class, 'cache-ttl' => 60, diff --git a/phpunit.xml.dist b/phpunit.xml.dist index bdccec9..28006ac 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -19,7 +19,7 @@ verbose="true" > - + tests diff --git a/src/Drivers/AbstractDriver.php b/src/Drivers/AbstractDriver.php index bbcadad..f36498f 100644 --- a/src/Drivers/AbstractDriver.php +++ b/src/Drivers/AbstractDriver.php @@ -1,8 +1,8 @@ in(__DIR__); diff --git a/tests/TestCase.php b/tests/TestCase.php index 00f9403..1f32fb9 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -1,10 +1,10 @@ 'flavorly\\InertiaFlash\\Database\\Factories\\'.class_basename($modelName).'Factory' + fn (string $modelName) => 'Flavorly\\InertiaFlash\\Database\\Factories\\'.class_basename($modelName).'Factory' ); }