Skip to content

Commit

Permalink
Adjust the namespace to support composer auto-discovery (#7)
Browse files Browse the repository at this point in the history
* Adjust the namespace to support composer package auto-discovery

* Update CacheHelpers.php

* Update CardServiceProvider.php

* Update CacheCardController.php

* Update CacheCardController.php

* Update api.php

* Update composer.json

* Update README.md
  • Loading branch information
dannyvink authored Feb 16, 2019
1 parent 4fa0601 commit dd2a522
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function cards()
{
return [
// ...
new \Vink\CacheCard\CacheCard(),
new \Vink\NovaCacheCard\CacheCard(),
];
}
```
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
},
"autoload": {
"psr-4": {
"Vink\\CacheCard\\": "src/"
"Vink\\NovaCacheCard\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Vink\\CacheCard\\CardServiceProvider"
"Vink\\NovaCacheCard\\CardServiceProvider"
]
}
},
Expand Down
6 changes: 3 additions & 3 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
| as many additional routes to this file as your card may require.
|
*/
Route::post('/flush', 'Vink\CacheCard\Http\Controllers\CacheCardController@flush');
Route::post('/cache', 'Vink\CacheCard\Http\Controllers\CacheCardController@forget');
Route::get('/cache', 'Vink\CacheCard\Http\Controllers\CacheCardController@get');
Route::post('/flush', 'Vink\NovaCacheCard\Http\Controllers\CacheCardController@flush');
Route::post('/cache', 'Vink\NovaCacheCard\Http\Controllers\CacheCardController@forget');
Route::get('/cache', 'Vink\NovaCacheCard\Http\Controllers\CacheCardController@get');
2 changes: 1 addition & 1 deletion src/CacheCard.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Vink\CacheCard;
namespace Vink\NovaCacheCard;

use Laravel\Nova\Card;
use Illuminate\Support\Facades\Storage;
Expand Down
2 changes: 1 addition & 1 deletion src/CacheHelpers.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Vink\CacheCard;
namespace Vink\NovaCacheCard;

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

namespace Vink\CacheCard;
namespace Vink\NovaCacheCard;

use Laravel\Nova\Nova;
use Laravel\Nova\Events\ServingNova;
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/CacheCardController.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Vink\CacheCard\Http\Controllers;
namespace Vink\NovaCacheCard\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Cache;
use Vink\CacheCard\CacheHelpers;
use Vink\NovaCacheCard\CacheHelpers;

class CacheCardController extends Controller
{
Expand Down

0 comments on commit dd2a522

Please sign in to comment.