Skip to content

Commit c7eeebb

Browse files
feat: change OoBook namespace as Oobook
1 parent c7d9a64 commit c7eeebb

26 files changed

+57
-57
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ composer require oobook/priceable
2020
#### Publish priceable config
2121
Create the priceable config file under config/ folder using **artisan**
2222
```
23-
php artisan vendor:publish --provider="OoBook\Priceable\LaravelServiceProvider" --tag="config"
23+
php artisan vendor:publish --provider="Oobook\Priceable\LaravelServiceProvider" --tag="config"
2424
```
2525

2626
#### Run the migrations for currency, price type, vat rate and prices
@@ -29,14 +29,14 @@ php artisan migrate
2929
```
3030

3131
#### Use the Priceable trait in your models:
32-
Include the OoBook\Priceable\Traits\HasPriceable trait in your model to access price-related methods:
32+
Include the Oobook\Priceable\Traits\HasPriceable trait in your model to access price-related methods:
3333

3434
```php
3535
<?php
3636

3737
namespace App\Models;
3838

39-
use OoBook\Priceable\Traits\HasPriceable;
39+
use Oobook\Priceable\Traits\HasPriceable;
4040

4141
class MyProduct extends Model
4242
{

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@
2222
},
2323
"autoload": {
2424
"psr-4": {
25-
"OoBook\\Priceable\\": "src"
25+
"Oobook\\Priceable\\": "src"
2626
}
2727
},
2828
"autoload-dev": {
2929
"psr-4": {
30-
"OoBook\\Priceable\\": "src",
31-
"OoBook\\Priceable\\Database\\": "database"
30+
"Oobook\\Priceable\\": "src",
31+
"Oobook\\Priceable\\Database\\": "database"
3232
}
3333
},
3434
"extra": {
3535
"laravel": {
3636
"providers": [
37-
"OoBook\\Priceable\\LaravelServiceProvider"
37+
"Oobook\\Priceable\\LaravelServiceProvider"
3838
]
3939
}
4040
}

config/priceable.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
'on_multiple_prices' => 'lowest', // highest, lowest, eldest, newest
1616

1717
'models' => [
18-
'vat' => \OoBook\Priceable\Models\VatRate::class,
19-
'price' => \OoBook\Priceable\Models\Price::class,
20-
'currency' => \OoBook\Priceable\Models\Currency::class,
21-
'price_type' => \OoBook\Priceable\Models\PriceType::class,
18+
'vat' => \Oobook\Priceable\Models\VatRate::class,
19+
'price' => \Oobook\Priceable\Models\Price::class,
20+
'currency' => \Oobook\Priceable\Models\Currency::class,
21+
'price_type' => \Oobook\Priceable\Models\PriceType::class,
2222
],
2323

2424
'tables' => [
@@ -35,6 +35,6 @@
3535
],
3636

3737
'observers' => [
38-
'price' => \OoBook\Priceable\Observers\PriceableObserver::class,
38+
'price' => \Oobook\Priceable\Observers\PriceableObserver::class,
3939
],
4040
];

database/factories/PriceFactory.php

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

33
use Faker\Generator as Faker;
4-
use OoBook\Priceable\Models\Price;
4+
use Oobook\Priceable\Models\Price;
55

66
/**
7-
* factory(OoBook\Priceable\Models\Price::class, 10)->create();
7+
* factory(Oobook\Priceable\Models\Price::class, 10)->create();
88
*/
99
$factory->define(Price::class, function (Faker $faker) {
1010
return [

database/migrations/2023_02_29_000004_create_price_types_table.php

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

33
use Illuminate\Support\Facades\Schema;
4-
use OoBook\Priceable\Models\Price;
4+
use Oobook\Priceable\Models\Price;
55
use Illuminate\Database\Schema\Blueprint;
6-
use OoBook\Priceable\Models\PriceType;
6+
use Oobook\Priceable\Models\PriceType;
77
use Illuminate\Database\Migrations\Migration;
88

99
return new class extends Migration

database/seeders/CurrencySeeder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace OoBook\Priceable\Database\Seeders;
3+
namespace Oobook\Priceable\Database\Seeders;
44

55
use Carbon\Carbon;
66
use Illuminate\Database\Seeder;

database/seeders/DatabaseSeeder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace OoBook\Priceable\Database\Seeders;
3+
namespace Oobook\Priceable\Database\Seeders;
44

55
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
66
use Illuminate\Database\Seeder;

database/seeders/PriceTypeSeeder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace OoBook\Priceable\Database\Seeders;
3+
namespace Oobook\Priceable\Database\Seeders;
44

55
use Carbon\Carbon;
66
use Illuminate\Database\Seeder;

database/seeders/VatRateSeeder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace OoBook\Priceable\Database\Seeders;
3+
namespace Oobook\Priceable\Database\Seeders;
44

55
use Illuminate\Database\Seeder;
66
use Illuminate\Support\Facades\DB;

routes/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
use Illuminate\Support\Facades\Route;
4-
use OoBook\Priceable\Http\Controllers\SetCurrencyController;
4+
use Oobook\Priceable\Http\Controllers\SetCurrencyController;
55

66
Route::middleware(['web'])
77
->get(

0 commit comments

Comments
 (0)