%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/news/database/seeds/
Upload File :
Create Path :
Current File : /var/www/html/news/database/seeds/NotificationsSeeder.php

<?php

use App\Models\Notification;
use Illuminate\Database\Seeder;

class NotificationsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Notification::create([
            'code'                   => 'account_enabled',
            'send_notification_flag' => true,
            'subject'                => 'Account Enabled',
            'greeting'               => 'Hello, ',
            'body'                   => 'Your account has been enabled.',
            'thank_you'              => 'Thank you for using our application!'
        ]);

        Notification::create([
            'code'                   => 'account_disabled',
            'send_notification_flag' => true,
            'subject'                => 'Account Disabled',
            'greeting'               => 'Hello, ',
            'body'                   => 'Your account has been disabled.',
            'thank_you'              => 'Thank you for using our application!'
        ]);

        Notification::create([
            'code'                   => 'inappropriate_comment_added',
            'send_notification_flag' => true,
            'subject'                => 'Inappropriate comment added',
            'greeting'               => 'Hello, ',
            'body'                   => 'A comment marked down as inappropriate has been added on ":article_title" article',
            'thank_you'              => 'Thank you for using our application!'
        ]);

    }
}

Zerion Mini Shell 1.0