Skip to content

Commit 6a4068d

Browse files
author
riccardodallavia
committed
UPDATE package namespace
1 parent 06d6749 commit 6a4068d

26 files changed

+64
-60
lines changed

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: h-farm
1+
github: maize-tech

.github/ISSUE_TEMPLATE/config.yml

+3-3
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-searchable/discussions/new?category=q-a
4+
url: https://github.com/maize-tech/laravel-searchable/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-searchable/discussions/new?category=ideas
7+
url: https://github.com/maize-tech/laravel-searchable/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a bug
10-
url: https://github.com/h-farm/laravel-searchable/issues/new
10+
url: https://github.com/maize-tech/laravel-searchable/issues/new
1111
about: Report a reproducable bug

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `laravel-searchable` 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

+1-1
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

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
# Laravel Searchable 🔍
44

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

1010
Easily add weighted searches through model attributes and relationships.
1111

@@ -16,12 +16,12 @@ This package currently supports `MySQL` and `PostgreSQL`.
1616
You can install the package via composer:
1717

1818
```bash
19-
composer require h-farm/laravel-searchable
19+
composer require maize-tech/laravel-searchable
2020
```
2121

2222
You can publish the config file with:
2323
```bash
24-
php artisan vendor:publish --provider="HFarm\Searchable\SearchableServiceProvider" --tag="searchable-config"
24+
php artisan vendor:publish --provider="Maize\Searchable\SearchableServiceProvider" --tag="searchable-config"
2525
```
2626

2727
This is the content of the published config file:
@@ -45,7 +45,7 @@ return [
4545

4646
## Usage
4747

48-
To use the package, add the `HFarm\Searchable\HasSearch` trait to each model you want to make searchable.
48+
To use the package, add the `Maize\Searchable\HasSearch` trait to each model you want to make searchable.
4949

5050
Once done, you can implement the `getSearchableAttributes` abstract method by returning the list of attributes (or relationships' attributes) you want to search for.
5151

@@ -58,7 +58,7 @@ Here's an example model including the `HasSearch` trait:
5858

5959
namespace App\Models;
6060

61-
use HFarm\Searchable\HasSearch;
61+
use Maize\Searchable\HasSearch;
6262
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
6363
use Illuminate\Support\Facades\DB;
6464

composer.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": "h-farm/laravel-searchable",
2+
"name": "maize-tech/laravel-searchable",
33
"description": "Laravel Searchable",
44
"keywords": [
5-
"h-farm",
5+
"maize-tech",
66
"laravel-searchable"
77
],
8-
"homepage": "https://github.com/h-farm/laravel-searchable",
8+
"homepage": "https://github.com/maize-tech/laravel-searchable",
99
"license": "MIT",
1010
"authors": [
1111
{
1212
"name": "Riccardo Dalla Via",
1313
"email": "[email protected]",
14-
"homepage": "https://h-farm.com",
14+
"homepage": "https://innovation.h-farm.com",
1515
"role": "Developer"
1616
}
1717
],
@@ -30,12 +30,12 @@
3030
},
3131
"autoload": {
3232
"psr-4": {
33-
"HFarm\\Searchable\\": "src"
33+
"Maize\\Searchable\\": "src"
3434
}
3535
},
3636
"autoload-dev": {
3737
"psr-4": {
38-
"HFarm\\Searchable\\Tests\\": "tests"
38+
"Maize\\Searchable\\Tests\\": "tests"
3939
}
4040
},
4141
"scripts": {
@@ -50,7 +50,7 @@
5050
"extra": {
5151
"laravel": {
5252
"providers": [
53-
"HFarm\\Searchable\\SearchableServiceProvider"
53+
"Maize\\Searchable\\SearchableServiceProvider"
5454
]
5555
}
5656
},

phpunit.xml.dist

+1-1
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/Concerns/AddsSearchTermToQuery.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace HFarm\Searchable\Concerns;
3+
namespace Maize\Searchable\Concerns;
44

5-
use HFarm\Searchable\Utils\AttributeUtil;
65
use Illuminate\Database\Eloquent\Builder;
76
use Illuminate\Database\Query\Expression;
7+
use Maize\Searchable\Utils\AttributeUtil;
88

99
trait AddsSearchTermToQuery
1010
{

src/Concerns/JoinsRelationshipsToQuery.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace HFarm\Searchable\Concerns;
3+
namespace Maize\Searchable\Concerns;
44

5-
use HFarm\Searchable\Utils\AttributeUtil;
6-
use HFarm\Searchable\Utils\Joiner;
75
use Illuminate\Database\Query\Builder;
86
use Illuminate\Support\Arr;
7+
use Maize\Searchable\Utils\AttributeUtil;
8+
use Maize\Searchable\Utils\Joiner;
99

1010
trait JoinsRelationshipsToQuery
1111
{

src/HasSearch.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

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

55
use Illuminate\Database\Eloquent\Builder;
66
use Illuminate\Support\Collection;

src/SearchBuilder.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

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

5-
use HFarm\Searchable\Concerns\AddsSearchTermToQuery;
6-
use HFarm\Searchable\Concerns\JoinsRelationshipsToQuery;
7-
use HFarm\Searchable\Utils\Parser;
85
use Illuminate\Database\Eloquent\Builder;
96
use Illuminate\Support\Collection;
7+
use Maize\Searchable\Concerns\AddsSearchTermToQuery;
8+
use Maize\Searchable\Concerns\JoinsRelationshipsToQuery;
9+
use Maize\Searchable\Utils\Parser;
1010

1111
class SearchBuilder extends Builder
1212
{

src/SearchableAttribute.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

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

55
class SearchableAttribute
66
{

src/SearchableServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

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

55
use Spatie\LaravelPackageTools\Package;
66
use Spatie\LaravelPackageTools\PackageServiceProvider;

src/Utils/AttributeUtil.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace HFarm\Searchable\Utils;
3+
namespace Maize\Searchable\Utils;
44

55
use Illuminate\Database\Eloquent\Model;
66
use Illuminate\Database\Query\Expression;

src/Utils/Joiner.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace HFarm\Searchable\Utils;
3+
namespace Maize\Searchable\Utils;
44

55
use Illuminate\Database\Eloquent\Model;
66
use Illuminate\Database\Eloquent\Relations\BelongsTo;

src/Utils/Parser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace HFarm\Searchable\Utils;
3+
namespace Maize\Searchable\Utils;
44

55
class Parser
66
{

tests/HasSearchTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace HFarm\Searchable\Tests;
3+
namespace Maize\Searchable\Tests;
44

5-
use HFarm\Searchable\Tests\Models\User;
5+
use Maize\Searchable\Tests\Models\User;
66

77
class HasSearchTest extends TestCase
88
{

tests/Models/Badge.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace HFarm\Searchable\Tests\Models;
3+
namespace Maize\Searchable\Tests\Models;
44

55
use Illuminate\Database\Eloquent\Model;
66
use Illuminate\Database\Eloquent\Relations\MorphOne;

tests/Models/Post.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace HFarm\Searchable\Tests\Models;
3+
namespace Maize\Searchable\Tests\Models;
44

55
use Illuminate\Database\Eloquent\Model;
66
use Illuminate\Database\Eloquent\Relations\BelongsTo;

tests/Models/Tag.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace HFarm\Searchable\Tests\Models;
3+
namespace Maize\Searchable\Tests\Models;
44

55
use Illuminate\Database\Eloquent\Model;
66
use Illuminate\Database\Eloquent\Relations\MorphToMany;

tests/Models/Team.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace HFarm\Searchable\Tests\Models;
3+
namespace Maize\Searchable\Tests\Models;
44

5-
use HFarm\Searchable\HasSearch;
65
use Illuminate\Database\Eloquent\Model;
76
use Illuminate\Database\Eloquent\Relations\HasMany;
7+
use Maize\Searchable\HasSearch;
88

99
class Team extends Model
1010
{

tests/Models/User.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
namespace HFarm\Searchable\Tests\Models;
3+
namespace Maize\Searchable\Tests\Models;
44

5-
use HFarm\Searchable\HasSearch;
65
use Illuminate\Database\Eloquent\Model;
76
use Illuminate\Database\Eloquent\Relations\BelongsTo;
87
use Illuminate\Database\Eloquent\Relations\HasMany;
98
use Illuminate\Database\Eloquent\Relations\MorphTo;
109
use Illuminate\Database\Eloquent\Relations\MorphToMany;
1110
use Illuminate\Support\Facades\DB;
11+
use Maize\Searchable\HasSearch;
1212

1313
class User extends Model
1414
{

tests/TestCase.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace HFarm\Searchable\Tests;
3+
namespace Maize\Searchable\Tests;
44

5-
use HFarm\Searchable\SearchableServiceProvider;
6-
use HFarm\Searchable\Tests\Models\Team;
7-
use HFarm\Searchable\Tests\Models\User;
85
use Illuminate\Database\Schema\Blueprint;
6+
use Maize\Searchable\SearchableServiceProvider;
7+
use Maize\Searchable\Tests\Models\Team;
8+
use Maize\Searchable\Tests\Models\User;
99
use Orchestra\Testbench\TestCase as Orchestra;
1010

1111
class TestCase extends Orchestra
@@ -64,7 +64,7 @@ public function createUser(array $attrs = [])
6464
'last_name' => 'Surname',
6565
'email' => '[email protected]',
6666
'description' => '{ "en": "Just a random guy" }',
67-
'team_id' => new Team(['name' => 'h-farm']),
67+
'team_id' => new Team(['name' => 'maize-tech']),
6868
], $attrs))->save();
6969

7070
return $user->fresh();

tests/Utils/AttributeUtilTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace HFarm\Searchable\Tests\Utils;
3+
namespace Maize\Searchable\Tests\Utils;
44

5-
use HFarm\Searchable\Tests\TestCase;
6-
use HFarm\Searchable\Utils\AttributeUtil;
75
use Illuminate\Database\Query\Expression;
86
use Illuminate\Database\Query\Grammars\PostgresGrammar;
97
use Illuminate\Support\Facades\DB;
8+
use Maize\Searchable\Tests\TestCase;
9+
use Maize\Searchable\Utils\AttributeUtil;
1010

1111
class AttributeUtilTest extends TestCase
1212
{

tests/Utils/JoinerTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace HFarm\Searchable\Tests\Utils;
3+
namespace Maize\Searchable\Tests\Utils;
44

5-
use HFarm\Searchable\Tests\Models\User;
6-
use HFarm\Searchable\Tests\TestCase;
7-
use HFarm\Searchable\Utils\Joiner;
85
use LogicException;
6+
use Maize\Searchable\Tests\Models\User;
7+
use Maize\Searchable\Tests\TestCase;
8+
use Maize\Searchable\Utils\Joiner;
99

1010
class JoinerTest extends TestCase
1111
{

tests/Utils/ParserTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace HFarm\Searchable\Tests\Utils;
3+
namespace Maize\Searchable\Tests\Utils;
44

5-
use HFarm\Searchable\Tests\TestCase;
6-
use HFarm\Searchable\Utils\Parser;
5+
use Maize\Searchable\Tests\TestCase;
6+
use Maize\Searchable\Utils\Parser;
77

88
class ParserTest extends TestCase
99
{

0 commit comments

Comments
 (0)