Skip to content

Commit

Permalink
replaced namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-granello committed Oct 10, 2024
1 parent 048d969 commit 1263120
Show file tree
Hide file tree
Showing 7 changed files with 5,742 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This package allows you to emit any of your existing Laravel Nova filters to met
You can install the package in to a `Laravel` app that uses [Nova](https://nova.laravel.com) via composer:

```bash
composer require nemrutco/nova-global-filter
composer require granello/nova-global-filter
```

## Usage
Expand All @@ -18,7 +18,7 @@ In this example, we are registering few `Metric Cards` and the `Global Filter` w

```php
...
use Nemrutco\NovaGlobalFilter\NovaGlobalFilter;
use Granello\NovaGlobalFilter\NovaGlobalFilter;
use App\Nova\Filters\Date;

class Store extends Resource
Expand Down Expand Up @@ -48,7 +48,7 @@ And now `metric cards` or any `other cards` optimized to listen `GlobalFilter` c
`globalFiltered($model, $filters = [])` method expect `$model` and `$filters` parameters:

```php
use Nemrutco\NovaGlobalFilter\GlobalFilterable;
use Granello\NovaGlobalFilter\GlobalFilterable;
use App\Nova\Filters\Date;
...

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nemrutco/nova-global-filter",
"name": "granello/nova-global-filter",
"description": "This package allows you to broadcast any of your existing Laravel Nova filters to metrics or custom cards.",
"keywords": [
"laravel",
Expand All @@ -22,13 +22,13 @@
],
"autoload": {
"psr-4": {
"Nemrutco\\NovaGlobalFilter\\": "src/"
"Granello\\NovaGlobalFilter\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Nemrutco\\NovaGlobalFilter\\CardServiceProvider"
"Granello\\NovaGlobalFilter\\CardServiceProvider"
]
}
},
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 Nemrutco\NovaGlobalFilter;
namespace Granello\NovaGlobalFilter;

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

namespace Nemrutco\NovaGlobalFilter;
namespace Granello\NovaGlobalFilter;

use Illuminate\Database\Eloquent\Builder;

Expand Down
4 changes: 2 additions & 2 deletions src/NovaGlobalFilter.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nemrutco\NovaGlobalFilter;
namespace Granello\NovaGlobalFilter;

use Laravel\Nova\Card;

Expand Down Expand Up @@ -37,7 +37,7 @@ public function __construct($filters = [])
$this->filters = $filters;
}

public function jsonSerialize() :array
public function jsonSerialize(): array
{
return array_merge(parent::jsonSerialize(), [
'filters' => collect($this->filters ?? [])->map(function ($filter) {
Expand Down
2 changes: 1 addition & 1 deletion webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mix
.setPublicPath("dist")
.js("resources/js/card.js", "js")
.vue({ version: 3 })
.nova("nemrutco/nova-global-filter");
.nova("granello/nova-global-filter");

mix.alias({
"laravel-nova": path.join(
Expand Down
5,731 changes: 5,731 additions & 0 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 1263120

Please sign in to comment.