Skip to content

Commit 919e3dd

Browse files
author
riccardodallavia
committed
UPDATE package namespace
1 parent 858c96d commit 919e3dd

File tree

17 files changed

+49
-45
lines changed

17 files changed

+49
-45
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: h-farm
1+
github: maize-tech

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/h-farm/laravel-excludable/discussions/new?category=q-a
4+
url: https://github.com/maize-tech/laravel-excludable/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/h-farm/laravel-excludable/discussions/new?category=ideas
7+
url: https://github.com/maize-tech/laravel-excludable/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a bug
10-
url: https://github.com/h-farm/laravel-excludable/issues/new
10+
url: https://github.com/maize-tech/laravel-excludable/issues/new
1111
about: Report a reproducable bug

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `laravel-excludable` will be documented in this file.
44

5+
## 2.0.0 - 2021-10-12
6+
7+
- UPDATE package namespace
8+
59
## 1.0.0 - 2021-05-05
610

711
- first release 🚀

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 H-FARM SPA <[email protected]>
3+
Copyright (c) 2021 MAIZE SRL <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
# Laravel Excludable
44

5-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/h-farm/laravel-excludable.svg?style=flat-square)](https://packagist.org/packages/h-farm/laravel-excludable)
6-
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/h-farm/laravel-excludable/run-tests?label=tests)](https://github.com/h-farm/laravel-excludable/actions?query=workflow%3Arun-tests+branch%3Amaster)
7-
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/h-farm/laravel-excludable/Check%20&%20fix%20styling?label=code%20style)](https://github.com/h-farm/laravel-excludable/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amaster)
8-
[![Total Downloads](https://img.shields.io/packagist/dt/h-farm/laravel-excludable.svg?style=flat-square)](https://packagist.org/packages/h-farm/laravel-excludable)
5+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/maize-tech/laravel-excludable.svg?style=flat-square)](https://packagist.org/packages/maize-tech/laravel-excludable)
6+
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/maize-tech/laravel-excludable/run-tests?label=tests)](https://github.com/maize-tech/laravel-excludable/actions?query=workflow%3Arun-tests+branch%3Amaster)
7+
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/maize-tech/laravel-excludable/Check%20&%20fix%20styling?label=code%20style)](https://github.com/maize-tech/laravel-excludable/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amaster)
8+
[![Total Downloads](https://img.shields.io/packagist/dt/maize-tech/laravel-excludable.svg?style=flat-square)](https://packagist.org/packages/maize-tech/laravel-excludable)
99

1010
Easily exclude model entities from eloquent queries.
1111

@@ -21,19 +21,19 @@ You can find an example in the [Usage](#usage) section.
2121
You can install the package via composer:
2222

2323
```bash
24-
composer require h-farm/laravel-excludable
24+
composer require maize-tech/laravel-excludable
2525
```
2626

2727
You can publish and run the migrations with:
2828

2929
```bash
30-
php artisan vendor:publish --provider="HFarm\Excludable\ExcludableServiceProvider" --tag="excludable-migrations"
30+
php artisan vendor:publish --provider="Maize\Excludable\ExcludableServiceProvider" --tag="excludable-migrations"
3131
php artisan migrate
3232
```
3333

3434
You can publish the config file with:
3535
```bash
36-
php artisan vendor:publish --provider="HFarm\Excludable\ExcludableServiceProvider" --tag="excludable-config"
36+
php artisan vendor:publish --provider="Maize\Excludable\ExcludableServiceProvider" --tag="excludable-config"
3737
```
3838

3939
This is the content of the published config file:
@@ -50,7 +50,7 @@ return [
5050
|
5151
*/
5252

53-
'exclusion_model' => HFarm\Excludable\Models\Exclusion::class,
53+
'exclusion_model' => Maize\Excludable\Models\Exclusion::class,
5454
];
5555

5656
```
@@ -59,7 +59,7 @@ return [
5959

6060
### Basic
6161

62-
To use the package, add the `HFarm\Excludable\Excludable` trait to all models you want to make excludable.
62+
To use the package, add the `Maize\Excludable\Excludable` trait to all models you want to make excludable.
6363

6464
Here's an example model including the `Excludable` trait:
6565

@@ -68,7 +68,7 @@ Here's an example model including the `Excludable` trait:
6868

6969
namespace App\Models;
7070

71-
use HFarm\Excludable\Excludable;
71+
use Maize\Excludable\Excludable;
7272

7373
class Article extends Model
7474
{

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": "h-farm/laravel-excludable",
2+
"name": "maize-tech/laravel-excludable",
33
"description": "Laravel Excludable",
44
"keywords": [
5-
"h-farm",
5+
"maize-tech",
66
"laravel-excludable"
77
],
8-
"homepage": "https://github.com/h-farm/laravel-excludable",
8+
"homepage": "https://github.com/maize-tech/laravel-excludable",
99
"license": "MIT",
1010
"authors": [
1111
{
1212
"name": "Enrico De Lazzari",
1313
"email": "[email protected]",
14-
"homepage": "https://h-farm.com",
14+
"homepage": "https://innovation.h-farm.com",
1515
"role": "Developer"
1616
}
1717
],
@@ -31,13 +31,13 @@
3131
},
3232
"autoload": {
3333
"psr-4": {
34-
"HFarm\\Excludable\\": "src",
35-
"HFarm\\Excludable\\Database\\Factories\\": "database/factories"
34+
"Maize\\Excludable\\": "src",
35+
"Maize\\Excludable\\Database\\Factories\\": "database/factories"
3636
}
3737
},
3838
"autoload-dev": {
3939
"psr-4": {
40-
"HFarm\\Excludable\\Tests\\": "tests"
40+
"Maize\\Excludable\\Tests\\": "tests"
4141
}
4242
},
4343
"scripts": {
@@ -52,7 +52,7 @@
5252
"extra": {
5353
"laravel": {
5454
"providers": [
55-
"HFarm\\Excludable\\ExcludableServiceProvider"
55+
"Maize\\Excludable\\ExcludableServiceProvider"
5656
]
5757
}
5858
},

config/excludable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
|
1212
*/
1313

14-
'exclusion_model' => HFarm\Excludable\Models\Exclusion::class,
14+
'exclusion_model' => Maize\Excludable\Models\Exclusion::class,
1515
];

database/factories/ArticleFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace HFarm\Excludable\Database\Factories;
3+
namespace Maize\Excludable\Database\Factories;
44

55
use Illuminate\Database\Eloquent\Factories\Factory;
6-
use HFarm\Excludable\Tests\Models\Article;
6+
use Maize\Excludable\Tests\Models\Article;
77

88
class ArticleFactory extends Factory
99
{

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
verbose="true"
2020
>
2121
<testsuites>
22-
<testsuite name="HFarm Test Suite">
22+
<testsuite name="Maize Test Suite">
2323
<directory>tests</directory>
2424
</testsuite>
2525
</testsuites>

src/Excludable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace HFarm\Excludable;
3+
namespace Maize\Excludable;
44

5-
use HFarm\Excludable\Scopes\ExclusionScope;
65
use Illuminate\Database\Eloquent\Relations\MorphOne;
6+
use Maize\Excludable\Scopes\ExclusionScope;
77

88
trait Excludable
99
{

0 commit comments

Comments
 (0)