@@ -12,7 +12,7 @@ class RulesApiServices
|
||||
public function getVoucherRules()
|
||||
{
|
||||
try {
|
||||
$data = ManageRule::select('id', 'message')
|
||||
$data = ManageRule::select('id', 'title', 'message')
|
||||
->get()
|
||||
->toArray();
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('manage_rules', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->longtext('title')->nullable();
|
||||
$table->longtext('message')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user