Inheritance: extends Illuminate\Database\Eloquent\Model, use trait Illuminate\Database\Eloquent\SoftDeletes, use trait Illuminate\Foundation\Bus\DispatchesJobs, use trait REBELinBLUE\Deployer\Traits\BroadcastChanges
コード例 #1
0
 public function run()
 {
     DB::table('notifications')->delete();
     Notification::create(['name' => 'Deployer', 'channel' => '#testing', 'icon' => ':ghost:', 'webhook' => 'https://hooks.slack.com/services/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', 'project_id' => 1]);
 }
コード例 #2
0
 public function run()
 {
     DB::table('notifications')->delete();
     Notification::create(['name' => 'Deployer', 'channel' => '#testing', 'icon' => ':ghost:', 'webhook' => 'https://hooks.slack.com/services/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', 'project_id' => 1]);
 }