41 lines
897 B
PHP
41 lines
897 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
|
||
|
|
use Phinx\Seed\AbstractSeed;
|
||
|
|
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||
|
|
/**
|
||
|
|
* sms Seeder
|
||
|
|
*
|
||
|
|
* @copyright 2019 Manaknightdigital Inc.
|
||
|
|
* @link https://manaknightdigital.com
|
||
|
|
* @license Proprietary Software licensing
|
||
|
|
* @author Ryan Wong
|
||
|
|
*/
|
||
|
|
class smsSeeder extends AbstractSeed
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Run Method.
|
||
|
|
*
|
||
|
|
* Write your database seeder using this method.
|
||
|
|
*
|
||
|
|
* More information on writing seeders is available here:
|
||
|
|
* http://docs.phinx.org/en/latest/seeding.html
|
||
|
|
*/
|
||
|
|
public function run()
|
||
|
|
{
|
||
|
|
$data = [
|
||
|
|
[
|
||
|
|
'slug' => 'verify',
|
||
|
|
'tag' => 'code',
|
||
|
|
'content' => 'Your verification # is {{{code}}}',
|
||
|
|
'created_at' => date('Y-m-j'),
|
||
|
|
'updated_at' => date('Y-m-j H:i:s'),
|
||
|
|
],
|
||
|
|
|
||
|
|
];
|
||
|
|
$model = $this->table('sms');
|
||
|
|
$model->truncate();
|
||
|
|
$model->insert($data)->save();
|
||
|
|
}
|
||
|
|
}
|