-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a64f130
commit 47efd21
Showing
47 changed files
with
417 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Brand Model | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Eloquent model should be used to retrieve your brands. Of course, | ||
| If you want to change this to use a custom model, your model needs to extends the | ||
| \Shopper\Core\Models\Brand model. | ||
| | ||
*/ | ||
|
||
'brand' => \Shopper\Core\Models\Brand::class, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Category Model | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Eloquent model should be used to retrieve your categories. Of course, | ||
| If you want to change this to use a custom model, your model needs to extends the | ||
| \Shopper\Core\Models\Category model. | ||
| | ||
*/ | ||
|
||
'category' => \Shopper\Core\Models\Category::class, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Collection Model | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Eloquent model should be used to retrieve your collections. Of course, | ||
| if you want to change this to use a custom model, your model needs to extends the | ||
| \Shopper\Core\Models\Collection model. | ||
| | ||
*/ | ||
|
||
'collection' => \Shopper\Core\Models\Collection::class, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Product Model | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Eloquent model should be used to retrieve your products. Of course, | ||
| If you want to change this to use a custom model, your model needs to extends the | ||
| \Shopper\Core\Models\Product model. | ||
| | ||
*/ | ||
|
||
'product' => \Shopper\Core\Models\Product::class, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Channel Model | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Eloquent model should be used to retrieve your channels. Of course, | ||
| If you want to change this to use a custom model, your model needs to extends the | ||
| \Shopper\Core\Models\Channel model. | ||
| | ||
*/ | ||
|
||
'channel' => \Shopper\Core\Models\Channel::class, | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
database/migrations/2023_09_21_063717_rename_requires_shipping_columns_on_products_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
use Shopper\Core\Helpers\Migration; | ||
|
||
return new class() extends Migration | ||
{ | ||
public function up(): void | ||
{ | ||
Schema::table($this->getTableName('products'), function (Blueprint $table): void { | ||
$table->renameColumn(from: 'requires_shipping', to: 'require_shipping'); | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Shopper\Core\Enum; | ||
|
||
enum CollectionType: string | ||
{ | ||
case MANUAL = 'manual'; | ||
|
||
case AUTO = 'auto'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Shopper\Core\Enum\Dimension; | ||
|
||
use Shopper\Core\Traits\ArrayableEnum; | ||
|
||
enum Length: string | ||
{ | ||
use ArrayableEnum; | ||
|
||
case M = 'm'; | ||
|
||
case CM = 'cm'; | ||
|
||
case MM = 'mm'; | ||
|
||
case FT = 'ft'; | ||
|
||
case IN = 'in'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Shopper\Core\Enum\Dimension; | ||
|
||
use Shopper\Core\Traits\ArrayableEnum; | ||
|
||
enum Volume: string | ||
{ | ||
use ArrayableEnum; | ||
|
||
case L = 'l'; | ||
|
||
case ML = 'ml'; | ||
|
||
case GAL = 'gal'; | ||
|
||
case FLOZ = 'floz'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Shopper\Core\Enum\Dimension; | ||
|
||
use Shopper\Core\Traits\ArrayableEnum; | ||
|
||
enum Weight: string | ||
{ | ||
use ArrayableEnum; | ||
|
||
case KG = 'kg'; | ||
|
||
case G = 'g'; | ||
|
||
case LBS = 'lbs'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.