Skip to content

Commit

Permalink
Moving or Organization
Browse files Browse the repository at this point in the history
  • Loading branch information
nikuscs committed Dec 7, 2022
1 parent 1bc5086 commit 8129935
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) flavorly <[email protected]>
Copyright (c) Flavorly <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
},
"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"
]
},
"autoload-dev": {
"psr-4": {
"flavorly\\InertiaFlash\\Tests\\": "tests"
"Flavorly\\InertiaFlash\\Tests\\": "tests"
}
},
"scripts": {
Expand All @@ -63,10 +63,10 @@
"extra": {
"laravel": {
"providers": [
"flavorly\\InertiaFlash\\InertiaFlashServiceProvider"
"Flavorly\\InertiaFlash\\InertiaFlashServiceProvider"
],
"aliases": {
"InertiaFlash": "flavorly\\InertiaFlash\\Facades\\InertiaFlash"
"InertiaFlash": "Flavorly\\InertiaFlash\\Facades\\InertiaFlash"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions config/inertia-flash.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
verbose="true"
>
<testsuites>
<testsuite name="flavorly Test Suite">
<testsuite name="Flavorly Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
Expand Down
4 changes: 2 additions & 2 deletions src/Drivers/AbstractDriver.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace flavorly\InertiaFlash\Drivers;
namespace Flavorly\InertiaFlash\Drivers;

use flavorly\InertiaFlash\Exceptions\PrimaryKeyNotFoundException;
use Flavorly\InertiaFlash\Exceptions\PrimaryKeyNotFoundException;
use Illuminate\Support\Collection;

abstract class AbstractDriver
Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/CacheDriver.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace flavorly\InertiaFlash\Drivers;
namespace Flavorly\InertiaFlash\Drivers;

use Carbon\Carbon;
use Illuminate\Cache\CacheManager;
Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/SessionDriver.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace flavorly\InertiaFlash\Drivers;
namespace Flavorly\InertiaFlash\Drivers;

use Illuminate\Support\Collection;
use Illuminate\Support\Traits\Macroable;
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/DriverNotSupportedException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace flavorly\InertiaFlash\Exceptions;
namespace Flavorly\InertiaFlash\Exceptions;

class DriverNotSupportedException extends InertiaFlashException
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/InertiaFlashException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace flavorly\InertiaFlash\Exceptions;
namespace Flavorly\InertiaFlash\Exceptions;

class InertiaFlashException extends \Exception
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/PrimaryKeyNotFoundException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace flavorly\InertiaFlash\Exceptions;
namespace Flavorly\InertiaFlash\Exceptions;

class PrimaryKeyNotFoundException extends InertiaFlashException
{
Expand Down
4 changes: 2 additions & 2 deletions src/Facades/InertiaFlash.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace flavorly\InertiaFlash\Facades;
namespace Flavorly\InertiaFlash\Facades;

use Illuminate\Support\Facades\Facade;

/**
* @see \flavorly\InertiaFlash\InertiaFlash
* @see \Flavorly\InertiaFlash\InertiaFlash
*/
class InertiaFlash extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/helpers.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use flavorly\InertiaFlash\InertiaFlash;
use Flavorly\InertiaFlash\InertiaFlash;

if(!function_exists('inertia_flash')){

Expand Down
2 changes: 1 addition & 1 deletion src/Inertia/ResponseFactory.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace flavorly\InertiaFlash\Inertia;
namespace Flavorly\InertiaFlash\Inertia;
use Illuminate\Contracts\Support\Arrayable;
use Inertia\Response;
use \Inertia\ResponseFactory as BaseResponseFactory;
Expand Down
12 changes: 6 additions & 6 deletions src/InertiaFlash.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace flavorly\InertiaFlash;
namespace Flavorly\InertiaFlash;

use Closure;
use flavorly\InertiaFlash\Drivers\AbstractDriver;
use flavorly\InertiaFlash\Drivers\CacheDriver;
use flavorly\InertiaFlash\Drivers\SessionDriver;
use flavorly\InertiaFlash\Exceptions\DriverNotSupportedException;
use flavorly\InertiaFlash\Exceptions\PrimaryKeyNotFoundException;
use Flavorly\InertiaFlash\Drivers\AbstractDriver;
use Flavorly\InertiaFlash\Drivers\CacheDriver;
use Flavorly\InertiaFlash\Drivers\SessionDriver;
use Flavorly\InertiaFlash\Exceptions\DriverNotSupportedException;
use Flavorly\InertiaFlash\Exceptions\PrimaryKeyNotFoundException;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Http\Request;
use Illuminate\Support\Collection;
Expand Down
4 changes: 2 additions & 2 deletions src/InertiaFlashServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace flavorly\InertiaFlash;
namespace Flavorly\InertiaFlash;

use flavorly\InertiaFlash\Inertia\ResponseFactory;
use Flavorly\InertiaFlash\Inertia\ResponseFactory;
use Illuminate\Http\RedirectResponse;
use Illuminate\Support\Arr;
use Inertia\Inertia;
Expand Down
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

use flavorly\InertiaFlash\Tests\TestCase;
use Flavorly\InertiaFlash\Tests\TestCase;

uses(TestCase::class)->in(__DIR__);
6 changes: 3 additions & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace flavorly\InertiaFlash\Tests;
namespace Flavorly\InertiaFlash\Tests;

use Illuminate\Database\Eloquent\Factories\Factory;
use Orchestra\Testbench\TestCase as Orchestra;
use flavorly\InertiaFlash\InertiaFlashServiceProvider;
use Flavorly\InertiaFlash\InertiaFlashServiceProvider;

class TestCase extends Orchestra
{
Expand All @@ -13,7 +13,7 @@ protected function setUp(): void
parent::setUp();

Factory::guessFactoryNamesUsing(
fn (string $modelName) => 'flavorly\\InertiaFlash\\Database\\Factories\\'.class_basename($modelName).'Factory'
fn (string $modelName) => 'Flavorly\\InertiaFlash\\Database\\Factories\\'.class_basename($modelName).'Factory'
);
}

Expand Down

0 comments on commit 8129935

Please sign in to comment.