/** * Run the database seeds. * * @return void */ public function run() { Notification::create(['user_id' => 1, 'order_id' => 1, 'description' => 'El Pedido #1 a cambiado de estado']); Notification::create(['user_id' => 1, 'order_id' => 1, 'description' => 'El Pedido #2 a sido confirmada']); }
public function notifications() { return $this->hasMany(Notification::getClass()); }