Skip to content

Commit

Permalink
Update to version 2 of business-name-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
claudemyburgh committed Jun 17, 2024
1 parent 27bd36b commit d6481f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ return [

```php
use Designbycode\LaravelBusinessNameGenerator\Facades\BusinessNameGenerator;
$businessName = BusinessNameGenerator::generate();
$businessName = BusinessNameGenerator::generate()->first();
```

### Custom Adjectives and Nouns
Expand All @@ -37,7 +37,7 @@ You can also provide your own lists of adjectives and nouns:
$customAdjectives = ["Cool", "Amazing", "Super"];
$customNouns = ["Shop", "Hub", "Center"];

$generator = BusinessNameGenerator::generate($customAdjectives, $customNouns);
$generator = BusinessNameGenerator::generate($customAdjectives, $customNouns)->first();
echo $businessName; // Example output: "Super Shop"
```

Expand All @@ -46,14 +46,14 @@ You can generate business names based on specific categories of adjectives and n

```php
// Generate a business name using playful adjectives and color-related nouns
$businessName = BusinessNameGenerator::generate('playful', 'color');
$businessName = BusinessNameGenerator::generate('playful', 'color')->first();
echo $businessName; // Example output: "Cheerful Blue"
```

### Generating Multiple Names
```php
// Generate a business name using playful adjectives and color-related nouns
$businessName = BusinessNameGenerator::generateMultiple('playful', 'color', 2);
$businessName = BusinessNameGenerator::amount(2)->generate()->get();
echo $businessName; // Example output: ["Cheerful Blue", "Red Trading]
```

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"require": {
"php": "^8.2|^8.3",
"designbycode/business-name-generator": "^1.2",
"designbycode/business-name-generator": "^2.0",
"illuminate/contracts": "^10.0||^11.0",
"spatie/laravel-package-tools": "^1.16"
},
Expand Down

0 comments on commit d6481f2

Please sign in to comment.