-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support discounts specifying fields in the discount UI (#1653)
- Loading branch information
1 parent
d5d480a
commit a230b75
Showing
4 changed files
with
106 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace Lunar\Admin\Base; | ||
|
||
interface LunarPanelDiscountInterface | ||
{ | ||
/** | ||
* Return the schema to use in the Lunar admin panel | ||
*/ | ||
public function lunarPanelSchema(): array; | ||
|
||
/** | ||
* Mutate the model data before displaying it in the admin form. | ||
*/ | ||
public function lunarPanelOnFill(array $data): array; | ||
|
||
/** | ||
* Mutate the form data before saving it to the discount model. | ||
*/ | ||
public function lunarPanelOnSave(array $data): array; | ||
} |
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